user34537
user34537

Reputation:

How do i implement intellisense for my language in visual studio?

I mention that i am designing a language. The plan was always to not implement it but to design it but i am considering implementing it if i think i could do it in a reasonable amount of time.

How would i have my language use intellisense in visual studios? BooLangStudio has it http://www.codinginstinct.com/2008/05/boo-in-visual-studio.html, http://www.codeplex.com/BooLangStudio

Upvotes: 7

Views: 8027

Answers (3)

Diniden
Diniden

Reputation: 1125

As of 4-4-2017: This article seems to give all of the basics for creating a language extension, which includes highlighting words and providing intellisense (code completion).

https://code.visualstudio.com/docs/extensions/example-language-server

Upvotes: 0

Sam Harwell
Sam Harwell

Reputation: 99869

It all depends on how much time you want to spend on it. I have about 2,000 hours of work in my Visual Studio IntelliSense projects resulting in exactly one mostly-complete language service. That said, it's not your "average" IntelliSense extension to Visual Studio - see the feature set for more info.

Here are some good resources to look at. I have a tendency to write with an assumption that users are already familiar with both the Visual Studio Extensibility basics and parsing with ANTLR. If you aren't, you should probably start at www.antlr.org and with my "ANTLR port" of one of the simple Visual Studio language service tutorials.

Here are some posts showing how serious I am about the subject. :D

PS: I can now build a syntax highlighter for a new language commenting/uncommenting in 1 day. In the same day I'm ofter able to get the type & member bars in as well.

Upvotes: 25

Jim Schubert
Jim Schubert

Reputation: 20357

This is a good place to look for Visual Studio Extensibility.

Also, here. But, the first link has a video specific to adding Intellisense to your language service.

Upvotes: 1

Related Questions