Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > How to temporary disable intellisense popup control in the code window?
 

How to temporary disable intellisense popup control in the code window?

I'm working on managed package. I create a code marker for some identifier(as method/class name) to edit it like inline rename. Editing finish on Enter. I listen for return command in the open document (IVsTextView.AddCommandFilter). The problem is that completion window is show up and it's not relevant at all. I just want to temporary disable auto completion window.
I saw that I can catch COMPLETEWORD command in the editor but It still show up because the option "Show completion list after a character is typed" is on.

Is this even possible? If so, can you point me in the direction of an example because I couldn't find anything?

Cheers,
Jordan
jdimitrov  Thursday, October 15, 2009 2:46 PM
Hi, Jordan
Show completion list could be turned off by automation model. like.
                    Properties properties = DTE.get_Properties("TextEditor", "CSharp");
                    //Properties properties2 = (Properties)properties.Item("Intellisense");
                    Property ShowCompletionList  = properties.Item("AutoListMembers");<br/>		  ShowCompletionList = true;<br/>
You could turn it on by setting the ShowCompletionList to true.
Thanks
Chao
  • Marked As Answer byjdimitrov 3 hours 30 minutes ago
  •  
Chao Kuo  5 hours 23 minutes ago
Hi, Jordan
Show completion list could be turned off by automation model. like.
                    Properties properties = DTE.get_Properties("TextEditor", "CSharp");
                    //Properties properties2 = (Properties)properties.Item("Intellisense");
                    Property ShowCompletionList  = properties.Item("AutoListMembers");<br/>		  ShowCompletionList = true;<br/>
You could turn it on by setting the ShowCompletionList to true.
Thanks
Chao
  • Marked As Answer byjdimitrov 3 hours 30 minutes ago
  •  
Chao Kuo  5 hours 23 minutes ago
Thanks Chao

I do what you proposed. I disable option and after that I enable it. But the option which I disable was in "TextEditor", "CSharp-Specific", "BringUpOnIdentifier". I found that it correspond to "Show completion list after a character is typed" in CSharp Intellisense options.

Thanks
Jordan
jdimitrov  3 hours 30 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Addin and CommandEvent?
• Getting error while opening solutions.....
• Interesting problem with SolutionContext.ConfigurationName
• (DSL Tools) reference relationships not shown in properties window
• How to retrive the specified address memory block of the debugged process, like memory window?
• Will CLSCompliant(false) effect my Langauge Package
• Listing of known bugs in DSL-Tools ?
• IDE Enhancements installation not working
• addin for hook key and write text after that (C#)
• Add-In: How to support VS2005 when writing the add-in in VS2008?