Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Key shortcut (hotkey) in Visual Studio to open a file inside your solution?

Is there a key shortcut in Visual Studio to find & open a file inside your solution without using Resharper or any other tools?

like image 294
dev.e.loper Avatar asked Jun 16 '09 19:06

dev.e.loper


People also ask

How do I open a file in Visual Studio?

In Visual Studio, click File > Open > Folder. Navigate to the folder, and click Select Folder. This opens the folder in Solution Explorer and displays its contents, files and any subfolders.

What is Ctrl K in Visual Studio?

Edit.SelectionCancel. Surround with. Ctrl+K, Ctrl+S. (available only in Visual Studio 2019 and earlier)

What is Ctrl Shift F in Visual Studio?

Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.


1 Answers

The accepted solution doesn't work on the newer versions.
For Visual Studio 2022, and 2019, 2017 do the following:

Update 1:
Now, pressing Ctrl + Shift + T and typing the file name works!

Update 2:
Since Visual Studio 2019 now it's possible to do a similar search via Ctrl + Q.
But it works slightly sloppy since it shows VS-related stuff as well.

Original answer:

  1. Press these keys to open the "Go to" popup:
    Ctrl + ,
  2. Type there:
    f Space Filename
  3. Press Enter

enter image description here

Notes:

  • We are writing f to make VS search only on files. We can also, use other letters. For more info type ? in the "Go to" popup.
  • For more keys and for Visual Studio 2012 to 2015 take a look at this answer.
like image 192
Just Shadow Avatar answered Sep 19 '22 11:09

Just Shadow