|
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.aspxhttp://msdn.microsoft.com/en-us/vstudio/cc837016.aspxSee 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 - Marked As Answer byWesley YaoMSFT, ModeratorMonday, October 12, 2009 3:40 AM
-
| | 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.aspxSincerely,
Ed Dore - Proposed As Answer byEd DoreMSFT, ModeratorTuesday, October 06, 2009 2:57 AM
- Marked As Answer byWesley YaoMSFT, ModeratorMonday, October 12, 2009 3:40 AM
-
| | 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.aspxhttp://msdn.microsoft.com/en-us/vstudio/cc837016.aspxSee 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 - Marked As Answer byWesley YaoMSFT, ModeratorMonday, October 12, 2009 3:40 AM
-
| | 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.aspxSincerely,
Ed Dore - Proposed As Answer byEd DoreMSFT, ModeratorTuesday, October 06, 2009 2:57 AM
- Marked As Answer byWesley YaoMSFT, ModeratorMonday, October 12, 2009 3:40 AM
-
| | 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 |
|