Lately I’ve been speaking at local user groups about many of the exciting new features in Visual Studio 2012. Since there is so much to know and learn about VS 2012, I decided to create a collection of blog posts with many of the tips. This collection of posts will include features that are new to VS 2012 as well as some existing features as well. To view all of the VS 2012 tips posted so far, click here.
This features, as well as a lot of the cool features of VS 2012’s Solution Explorer, was carried forward from a tool called the Solution Navigator that was available as an add-on in VS 2010 as part of the VS Productivity Power Tools download. It was a good feature then but it is even better now.
You can see the Solution Explorer in the screenshot showing the Controllers folder and the two source files it contains: AccountController.cs and HomeController.cs. But note the icon that indicates you can drill down further.
Now you can see that the Solution Explorer is capable of displaying quite a bit more information. You can see all of the class level variables (a private field named _foo and a public property named Foo) as well as a bunch of methods. You can also see the details of two nested classes. Of course, clicking on any of the items will bring up the file location on the code editor. These details can be combined with other features within the Solution Navigator. If you want to see how to search through the class level details, please check out my blog post on that topic. If you want, you can also change the scope of Solution Explorer down to these class level details. For details, please read my post on that topic as well.
I hope you find this tip helpful. To see more VS 2012 Tips, just click here.