Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

VS2013 IntelliSense doesn't autocomplete class members in brace initializers (C++)

$
0
0

I'm running VS2013 and I reset the settings to default Visual C++. I have code like this:

struct TestStruct
{
	int foo;
	int bar;
};

int main()
{
	TestStruct ts = { 3, 5 };
	TestStruct ts2 = { ts.foo, ts.bar };
	int arr[2] = { ts.foo, ts.bar };
}

So when I'm typing the second line in main(), after I type the first period (after ts), I expect foo and bar to pop up, but they don't. Not even when I try Ctrl-Space and Alt-RightArrow. I type the f in foo, wait a few seconds, type Ctrl-Space and Alt-RightArrow again, nothing happens. The autocompletion never pops up for the rest of the entire line.

The same thing happens in the third line with the array initializer. However, if I type "int x = ts." then it pops up fine. I would include images but it says my account isn't verified.

So is this a bug? Or is there some setting I should change?


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>