Visual studio 2010 link solution explorer to current file




















Thank you. This is a very nice article and a great help to me. Thanks again! Visual Smarter may be worth to try. In this article, you'll learn what a project and a solution is in Visual Studio. It also briefly covers the Solution Explorer tool window and how to create a new project.

This topic applies to Visual Studio on Windows. When you create an app or website in Visual Studio, you start with a project. In a logical sense, a project contains all files that are compiled into an executable, library, or website. Those files can include source code, icons, images, data files, and so on. A project also contains compiler settings and other configuration files that might be needed by various services or components that your program communicates with.

The file extension reflects the type of project, for example, a C project. The project file is an XML document that contains all the information and instructions that MSBuild needs in order to build your project, including the content, platform requirements, versioning information, web server or database server settings, and the tasks to perform.

To look at the contents of. NET Framework and other projects of that style, first unload the project right-click on the project node in Solution Explorer and select Unload Project. You don't have to use solutions or projects in Visual Studio to edit, build, and debug code. You can simply open the folder that contains your source files in Visual Studio and start editing.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Auto select file in Solution Explorer from its open tab Ask Question. Asked 11 years, 4 months ago. Active 7 months ago. Viewed k times. Is there a way to automatically select an opened file in Solution Explorer?

Improve this question. Alexander Abakumov Yaakov Shoham Yaakov Shoham 9, 7 7 gold badges 35 35 silver badges 44 44 bronze badges.

Yeah, I keep almost turning back on the "Track Active Item in Solution Explorer", then I remember how much I disliked that, because I'd lose track of the section of the project I was working on.

However, I also often want to on-demand "focus-to" the document I'm editing, to see all the items in nearby namespaces. For example, maybe I've just gone 5 references deep in a project I don't know well, using F12 Go to definition. Visual Studio has a new shortcut Ctrl [, S. Yes you have to type Ctrl [ and then release and then immediately type S or click the little sync icon at the top of Solution Explored.

It will synchronize to the item. Usually this is more useful than always tracking, which in older versions always was a disaster because it would track items in a row and then be jumping all over the place I know its little too late, but hope it helps someone else. With this comes "Solution Navigator" alternative to Solution Explorer, with a lot of benefits - which then you can use to filter the files to only show "Open".

You can even filter files to show "Edited" and "Unsaved". In the event you want to only track the current file through a keyboard shortcut - the activity is "View. Credit James' comment. Firing the SolutionExplorer. By using the "Sync with active document" button on top of the Solution Explorer. The button looks like 2 apposing arrows on top of each other. If you're version is older then VS Version This will mean whenever you switch between documents the new document gets selected in Solution Explorer.

This can be irritating if your solution has lots of folders, because as you move around files in your solution all the folders will be left open. Visual Studio introduced the new "Sync with Active Document" feature. If you want to select the file in the solution explorer on command and don't want to install anything then I would recommend this macro.

You can set the solution explorer to always stay in sync with this simple setting:. Thanks to Cory House. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to locate a file in Solution Explorer in Visual Studio ? Ask Question. Asked 11 years, 5 months ago. Active 4 months ago. Viewed 94k times. Improve this question. Amitabh Amitabh 54k 40 40 gold badges silver badges bronze badges.

For a native way for VS and above, check out Aaron Carlson's answer below. Add a comment. Active Oldest Votes.



0コメント

  • 1000 / 1000