Jeanious Note · Visual Studio

navigatIng to files in Visual Studio 2013

This is a Jeanious Note, a note I keep for myself and share with the Internet. I hope this helps someone else too. 🙂

Situation: I just joined a new team that has existing code. I have navigated to a file by using F12 to find where a method is defined. But now I don’t know the location (folder and project) the current file that is open.  The image below say I want to find where HomeController.cs is located.  I have two options.  The first to to click the icon to “Sync with Active Document” which I have circled in Red.

image

By clicking the “Sync with Active Document” icon can now see that the HomeController.cs is located in the Controllers folder.

image

But what I really want is to always see the location of the currently active document without having to click the icon every time.  What needs to be done is to go to tools->options. under “Projects and Solutions” check the box that says “Track Active Item in Solution Explorer”

clip_image002

That’s it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s