See the type of a var in Visual Studio
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3: