Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make Visual Studio display "auto" types

So, when I use auto keyword in VS2015 with something simple, like this:

As you can see, it shows the variable's type, but, when I try something a bit more complex (or defined in another file?), it freaks out and gives me some not-so-useful information:

Although VS is still able to determine top's type:

So, I wonder if there is a way to make this wonderful IDE show those complex/defined somewhere else types?

like image 273
ARentalTV Avatar asked May 29 '26 05:05

ARentalTV


2 Answers

According to this discussion thread, Microsoft changed the shortcut keys. The relevant settings are here enter image description here

like image 63
Kargath Avatar answered May 30 '26 18:05

Kargath


At our company, we use the Visual Assist extension (not free unfortunately, but understandably). It can find the class for the auto keyword when you choose "Goto implementation" (Alt+G).

like image 30
jciloa Avatar answered May 30 '26 17:05

jciloa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!