How to quickly open a file in visual studio.net

In the visual studio, we can open the file in the #Include statement by right-clicking the file name in the include statement and clicking "Open Document". But sometimes, when I want to open a file, I don’t remember where it was in the project or where it was included. What I do is that I open any file, add the #include statement for this file, then right-click-> Open document to open the file, and then delete the #include statement that I added to open this file.

Can someone plz tell me a more straightforward way to quickly open a file without searching for it?

I am using Visual Studio 2008

+4
source share
2 answers

Press Ctrl + / to go to the "Find" combo box on the default toolbar, type >of Foo.cpp and press enter. of is a "open file" command and will give you autocomplete with files in your solution.

This also works for any other system or library header files that you include (e.g. windows.h ).

enter image description here

The leading character > tells the Find command window, as in the command window, so any commands that work in the command window also work in the list box.

+5
source

Visual Assist X "Open file in solution" (VAssistX.OpenFileInSolutionDialog command) works great for quickly opening a file. I find it faster than the Visual Studio ">" command.

See http://www.wholetomato.com/products/featureSearch.asp for a screenshot.

+1
source

Source: https://habr.com/ru/post/1343731/


All Articles