VS2012 Intellisense RRS feed

  • Question

  • I created a custom dialog, and my problem is with VS Intellisense autocompletion.
    Now, because I am using Inherits System.Windows.Forms.Form, all functions are displayed.

    There is a way to show only my functions? For example:


    Green: is unnecessary and I do not want this appears (of course, this is only part of all what is offered)
    Orange: what I want to appear - my function(s).
    Friday, February 15, 2013 12:58 PM


  • One way to hide the base class members from intellisense would be to override or shadow each of them explicitly in your class and then add the appropriate EditorBrowsableAttribute to each one, like this:

    <System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.Never)> _

    However, not only would this be tedious and time-wasting but it would just be darned annoying for those time you actually do need to access one of those members.  Also, shadowing core members of the form class could lead to coding errors and unseen issues down the road.  Just a guess but if you were to remove all intellisense for your form's base members you would have second thoughts about it rather quickly.

    The better option is to build a VS extension that does the intellisense filtering.  I've never played with that but you can find more information here: http://msdn.microsoft.com/en-us/library/dd885119.aspx

    Blog: http://codemidden.wordpress.com

    • Marked as answer by Youen Zen Thursday, February 28, 2013 10:18 AM
    Friday, February 15, 2013 1:24 PM