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

后端 未结 5 1744
广开言路
广开言路 2021-02-05 01:14

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

5条回答
  •  -上瘾入骨i
    2021-02-05 01:58

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

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

    Update 2:
    For Visual Studio 2019 now it's possible to do 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 "Go to" popup:
      Ctrl + ,
    2. Type there:
      f Space Filename
    3. Press Enter

    Notes:

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

提交回复
热议问题