Andrew
Andrew

Reputation: 1

Why is Visual Studio's Intellisense not showing constructors?

I'm using Visual Studio 2015, writing in c++, and the following does not display any Intellisense:

class testing
{
    public:
        testing()
        {

        }
};

void main()
{
    testing t( //Y u no show?
}

but whenever I type a . or , where appropriate, or when I'm call a function or a class's function and type a (, it does show Intellisense.

Why is that, and how can I fix it? It doesn't matter what class or library I'm using, and I've tried restarting Visual Studio. Is there perhaps a simple way to "clear Intellisense's cache" or something?

I tried cleaning the solution, creating a new solution, and resetting all environment settings (Tools -> Import and Export Settings), all to no avail. Again, Intellisense is working fine overall, except in this one specific case where I'm creating an instance of a class and need to see the constructor's arguments.

Hopefully someone can give me a working solution to this problem or the Visual Studio developers will resolve it eventually, because it's really annoying, but until then I will have to settle for one of these two options to see Intellisense:

testing( //no "t" (variable name): triggers Intellisense
testing t(, //comma in the constructor: triggers Intellisense

Upvotes: 2

Views: 2812

Answers (1)

Timothy G.
Timothy G.

Reputation: 9205

There is a way to refresh Intellisense. To do so, press Ctrl+Shift+R, or go to Edit>Intellisense>Refresh Local Cache.

I know that after doing this it's helped to get Intellisense back on its feet for me.

Upvotes: 2

Related Questions