Solution Explorer Scoping in Visual Studio 2012
Posted
Mon, Sep 3 2012 10:23
by
Deborah Kurata
In prior versions of Visual Studio, the Solution Explorer has been basically static. With Visual Studio 2012, it is much more dynamic with features such as filtering and scoping.
[For information on the filtering features, see this prior blog post.]
The scoping feature allows you to limit the display of Solution Explorer to one specific folder, project, code file, or class. This allows you to more easily find the code you want to work with during a particular coding session.
For example, if you are building an MVVM application you could scope Solution Explorer on one monitor to your Views folder and Solution Explorer on another monitor to your ViewModels folder. [For more information on displaying Solution Explorer on a second monitor see this upcoming post.]
To scope Solution Explorer to a folder, right-click on the folder and select "Scope To This" from the context menu.

To return to the full list of folders and files, click the Home button in Solution Explorer's toolbar.
Scoping to a class provides a quick way to access any property or method in the class. Right-click on a class in Solution Explorer and select "Scope to This" from the context menu.

Use the scoping features of Solution Explorer any time you want to focus on a specific folder, code file, or class during your coding session.
Enjoy!