Custom language plugin

AloisDenielAloisDeniel FRUniversity ✭✭
edited July 2017 in Visual Studio

Hi everyone,

Is it possible to create a plugin for VS for Mac/VS2017 to add auto-completion for a custom XML declarative language. In this XML language, I would like to add references to the C# code (like auto completion on the project type properties and so on).

Thanks!

Answers

  • mattwardmattward GBMember Xamurai

    Yes for Visual Studio for Mac. Not sure exactly what you want to do but you can create a custom text editor extension and provide your own code completion. There is an MSBuild editor addin that adds code completion for MSBuild xml files. If your XML language uses files with a unique file extension then you can see how the MSBuild editor addin works.

    There is also the HTML editor that ships with Visual Studio for Mac which uses the existing xml text editor extension as a base and adds extra html specific behaviour.

  • AloisDenielAloisDeniel FRUniversity ✭✭

    Thanks, i'll check it out! Should do the trick combined with Roslyn for autocompletion.

    It would be very cool to have a basic sample for creating this kind of custom editor addin.

Sign In or Register to comment.