locked
Intellisense not working with overloaded methods in VS2012? RRS feed

  • Question

  • I have been using VS2012 for a few days now and noticed that whenever I am type a method name followed by (, it does not show the different overloaded method tips/comments like it did in visual studio 2010. Is this a bug or intended?
    Wednesday, August 29, 2012 1:53 PM

Answers

  • So this is happening in the C# text editor.  Try running VS in safemode using /safemode to eliminate addins like ReSharper from getting in the way.  If that doesn't work then export your settings and then run /resetuserdata to reset your user data and see if the problem goes away before importing your settings again.

    Michael Taylor - 8/29/2012
    http://msmvps.com/blogs/p3net

    Wednesday, August 29, 2012 9:52 PM
    Moderator

All replies

  • It is working fine for me.  Do you have code that doesn't compile?  Is IS not coming up at all or is it not showing certain overloads?  Does it work when you do something like MyType.

    Michael Taylor - 8/29/2012
    http://msmvps.com/blogs/p3net

    Wednesday, August 29, 2012 2:07 PM
    Moderator
  • My code does compile.

    For example:

    StreamWriter SWriter = new StreamWriter(streamy);
    SWriter.Write(text);
    SWriter.wr|

    Where you see the bar |, that is where my cursor is. At that point it suggests .Write method and says there are 16 overloads. When I press tab, and enter the first parenthesis, there is no intellisense telling me about the different methods. At this point, the line looks like this:

    SWrite.Write(|


    • Edited by DuelingCats Wednesday, August 29, 2012 2:16 PM
    Wednesday, August 29, 2012 2:16 PM
  • Check your IS settings under Tools\Options -> Text Editor\C#\Intellisense to ensure that ( is one of the triggers. 
    Wednesday, August 29, 2012 2:30 PM
    Moderator
  • I checked and it is part of the character list.
    Wednesday, August 29, 2012 2:33 PM
  • So this is happening in the C# text editor.  Try running VS in safemode using /safemode to eliminate addins like ReSharper from getting in the way.  If that doesn't work then export your settings and then run /resetuserdata to reset your user data and see if the problem goes away before importing your settings again.

    Michael Taylor - 8/29/2012
    http://msmvps.com/blogs/p3net

    Wednesday, August 29, 2012 9:52 PM
    Moderator