3
p100sch
4y

Does anybody know where to start when implementing your own language as a plugin in Visual studio.
Sure, I could modify a plugin for another language, but I'd like to learn it, and Google just spits out garbage.

Comments
  • 2
    Depends on how far you want to go.

    Syntax highlighting is pretty straightforward, plugging into the suggestion system will require you to write a language service that produces precompilation errors and hook into the file watcher system.

    At that point you've done a ton of work and only succeeded in making Microsoft look better, and your product only ships to windows.

    I'd recommend targeting the jetbrains ecosystem instead, visual studio isn't worth the effort or money anymore.
  • 1
    Start by giving up. You know where to go from there.
  • 0
    @SortOfTested I'd like to highlight the language constructs and display errors and warnings.

    As to my choice of IDE, I have to use Visual Studio 2019 Pro because it is for a language I use at work for formatting old printable pages.
    We migrated most shit to List&Label but some of our customers use 32bit versions of the software from 2017 or earlier that still used that legacy system.
  • 1
    @p100sch
    The syntax highlighting is just textmate, but even that will be a chore to add to a vsix package.

    Errors and warning, compiler output, your only short-term result will be adding an msbuild file to execute the compiler from cli.

    You're probably better off writing them as vscode plugins honestly, and sidecarring to it as an IDE for that lang.
  • 0
    @SortOfTested OK, sounds reasonable.
  • 0
    You made .... your own language.
  • 0
    @Ranchonyx Nope, my boss made it in the 90ies or 2000nds
  • 0
Add Comment