Visual Studio Solution Explorer

16.09.2019
  1. Visual Studio Solution Explorer Yellow Triangle

You can create new ones in Solution Explorer using right-click menu. Then right-click the filter, “Add”, “Existing Items”, and select the.cpp and.h files. If the files are already placed in some subfolders of your project, then try this: go to Solution Explorer and click the “Show all files” toolbar button. In Visual Studio, the project file is used by Solution Explorer to display the project contents and settings. When you compile your project, the MSBuild engine consumes the project file to create the executable. You can also customize projects to produce other kinds of output.

When I have an open code file in Visual Studio that I am editing I would like to keep that same file highlighted inside of the solution Explorer so that I know where I am at.

What I'd really like is to change the focus to a different code file and the solution explorer to move to the file that I am editing.

Further Explanation and example:

  • I have a project with 2 files: Class1 and Class2.
  • I open both files. The focus is on Class1.
  • I click on the Class2 Tab, thereby changing the file that I am editing to Class2.

Desired Behavior: The solution explorer will highlight Class2.

Apk

thepaulpagethepaulpage
7552 gold badges8 silver badges17 bronze badges

3 Answers

Tools - Options - Projects and Solutions - General - Track Active Item In Solution Explorer

I don't have full Visual Studio, only the Express Editions, where it seems to be checked by default for VB.NET and unchecked by default in C++.NET.

Draemon
4981 gold badge5 silver badges14 bronze badges
MartinMartin
2,0901 gold badge16 silver badges17 bronze badges

I prefer using the Solution Explorer Tools extension. It allows me to work most of the time without syncying code with solution explorer. when I want to sync I just press the sync button on the solution explorer. It can be downloaded here.

oshosh

'CTL + '[', S' will synchronize the solution explorer with the file in the current edit window.

MetroMetro

Visual Studio Solution Explorer Yellow Triangle

Not the answer you're looking for? Browse other questions tagged windowsvisual-studio or ask your own question.

I don't know what I did, but somehow my solution explorer disappeared in Visual Studio 2013 Express for Web whenever the debugger is running. I have to stop running my app any time I need to open a file that is not currently open. How can I get it back?

drewwyattdrewwyatt
3002 gold badges7 silver badges14 bronze badges

1 Answer

Visual

If for some reason Solution explorer is closed, you can reopen it from the view menu, or with the key command Ctrl + Alt + L.

Also note visual studio changes window preference sets when going into debug mode (similar to the Eclipse 'Perspective' switch, but less jarring), so if you closed it both in normal/design mode and in debug mode, you would likely have to reopen it for both modes separately.

Frank ThomasFrank Thomas
28k2 gold badges60 silver badges82 bronze badges

Not the answer you're looking for? Browse other questions tagged visual-studiovisual-studio-2013 or ask your own question.

Comments are closed.