How do I implement intellisense support for a custom DLR language in VS2008?

只愿长相守 提交于 2019-12-22 08:52:06

问题


I have just started writing my first language for the .NET DLR.

I would like to know if it is possible to extend Visual Studio 2008 IntelliSense to handle the syntax of a custom DLR language?

EDIT: I have decided to bypass VS2008 and target VS2010 instead. See accepted answer for more information.


回答1:


Visual Studio's primary extensibility method for supporting new languages is through Language Services in a VSPackage.

Visual Studio 2010 has radically improved the ability to support a new language, but if target your extension to it you will not be able to use it in older versions. If you write a language service for Visual Studio 2008, you'll be able to use it with Visual Studio 2010 as well. Unless you have some strong financial ties to supporting Visual Studio 2008, definitely skip it and go for 2010.

Here is the best public link I know of right now:

  • Django Editor in VS 2010 – Part 1 (Colors) (This is the first entry of a 7-part series on his blog.)

I'm working on a new set of articles about support for Visual Studio 2010, but they aren't ready yet, and likely won't be for a while. :\ If you decide to go with a Visual Studio 2008 language service, I have several entries on my blog on the subject.



来源:https://stackoverflow.com/questions/1797516/how-do-i-implement-intellisense-support-for-a-custom-dlr-language-in-vs2008

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