Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > How to show intellisense dropbox
 

How to show intellisense dropbox

Hi

I'm writing C++ code completion for Visual Studio 2005 and I would like to use Visual's intellisense dropbox to show list of possible items. I don't want to change anything in Visual Studio intellisense, all I need is to show this dropbox on desired position, add items to it and have access to its events (item changed, etc.)

Thanks in advance
Klesk  Saturday, October 03, 2009 10:29 AM
http://msdn.microsoft.com/en-us/vstudio/cc709419.aspx
http://msdn.microsoft.com/en-us/vstudio/cc837016.aspx

See above video tutorials for language services. That might help.
However, you dont' need to create your own language service. What you have to do is just to access the C++ language service which is already exists.
CJ
CharithJ  Monday, October 05, 2009 4:29 AM
That would be a non-trivial operation. You will effectively have to replace the C++ intellisense support entirely. The language service architecture currently has no hooks that will allow you to add, remove or otherwise modify the dropdown autocompletion feature.

However, the code editor for VS 2010 has been entirely redesigned to allow for adding these sort of features via MEF. You might want to give that a look. There are some examples of this out on codeplex at : http://editorsamples.codeplex.com/

MVP Istvan Novak has a nice set of writeups on the new editor at http://dotneteers.net/blogs/divedeeper/archive/2009/05/22/LearnVSXNowPart42.aspx

Sincerely,
Ed Dore
Ed Dore  Tuesday, October 06, 2009 2:57 AM
Are you accessing VS C++ language service ? If so I could help.
CJ
CharithJ  Saturday, October 03, 2009 4:38 PM
Heh... I don't know... I would like either create and show my own dropbox or somehow replace Visual's C++ default intellisense system... but I have no idea how to do it.
Klesk  Saturday, October 03, 2009 4:52 PM
http://msdn.microsoft.com/en-us/vstudio/cc709419.aspx
http://msdn.microsoft.com/en-us/vstudio/cc837016.aspx

See above video tutorials for language services. That might help.
However, you dont' need to create your own language service. What you have to do is just to access the C++ language service which is already exists.
CJ
CharithJ  Monday, October 05, 2009 4:29 AM
That would be a non-trivial operation. You will effectively have to replace the C++ intellisense support entirely. The language service architecture currently has no hooks that will allow you to add, remove or otherwise modify the dropdown autocompletion feature.

However, the code editor for VS 2010 has been entirely redesigned to allow for adding these sort of features via MEF. You might want to give that a look. There are some examples of this out on codeplex at : http://editorsamples.codeplex.com/

MVP Istvan Novak has a nice set of writeups on the new editor at http://dotneteers.net/blogs/divedeeper/archive/2009/05/22/LearnVSXNowPart42.aspx

Sincerely,
Ed Dore
Ed Dore  Tuesday, October 06, 2009 2:57 AM
Unfortunately it should work with VS 2005 not 2010.


I have one more question - it it possible to replace only C++ intellisense and keep unchanged everything else, for example C++ syntax coloring ?

Klesk  Tuesday, October 13, 2009 8:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Is the TargetFileName attribute ignored on Project elements?
• Source control support problem
• Implementing custom code metric in Visual Studio 2008
• Where can I find a list of third party Visual Studio vspackage providers
• Adding new DataSet to App_Code Fails !
• DSL
• SDK Package: call GetGlobalService sometimes failed,what might be the problem?
• Compiling files generated in pre build event
• VSdir resource dll in VS2005
• A plugin for JavaScript Intellisense in Visual Studio 2005?