Question

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

Was it helpful?

Solution

Not a single keystroke, but yes: Ctrl+D > o f <space> filename (so that's five keystrokes before you start typing the filename). It then autocompletes the filename for you.

You need the Find box in the toolbar for this to work.

(If you change your mind about addins, SonicFileFinder is for this very purpose, and free.)

OTHER TIPS

Accepted solution doesn't work in newer versions.
For Visual Studio 2017 and 2019 do the following:

Updated answer:
Now pressing Ctrl + Shift + T and typing file name works!

Older answer:

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

enter image description here

Notes:

  • We are writing f to make to make VS search only on files. We can also use another letters. For more info type ? in "Go to" popup.
  • For Visual Studio 2012 to 2015 take a look at this answer.

You can also use Ctrl + /, which puts the > in place for you automatically.

Similar to Just Shadow's answer I discover that, on Visual Studio 2017, you can do the following:

Press Ctrl + 1, then f

Or you could go to Tools -> Options -> Keyboard and change the shortcut of Edit.GoToFile for whatever you like.


I replaced mine with: Ctrl + O

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top