How to add C/C++ language service to a Visual Studio-based application?

若如初见. 提交于 2020-01-02 13:27:13

问题


I am trying to create a domain specific IDE based on Visual Studio shell. I followed the walk-through to create a basic Isolated Visual Studio Shell Application.

Then I started the basic shell application and drag a C file into it. There's no syntax highlighting because no language service is included yet.

I found the GUIDs for various Visual Studio feature packages. I was expecting some kind of language feature package for C/C++ listed there so I can just add it into my IDE's feature list. But there's not.

So how can I make my IDE recognize the C/C++ language?

Or put it another way, how can I customize Visual Studio to include only features I need?

Some References

There are many extension types I can do with Visual Studio. What interests me most is the Visual Studio-based application. I will put the findings here as my research goes on.

Walkthrough: Creating a Basic Isolated Shell Application

Package GUIDs of Visual Studio Features

Legacy Language Service Extensibility

New Editor and Language Service Extensions

  • New Extending the Editor and Language Services]
  • Language Service and Editor Extension Points

Visual Studio Isolated Shell

  • Elements of the Isolated Shell
  • Customizing the Isolated Shell
  • Extending the Isolated Shell

Visual Studio Integrated Shell says this:

No programming language is included. However, the integrated shell does provide a framework that allows you to add programming languages.

来源:https://stackoverflow.com/questions/46874880/how-to-add-c-c-language-service-to-a-visual-studio-based-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!