Find a file by name in Visual Studio Code

FileSearchVisual Studio-CodeFind

File Problem Overview


How can I find a file by name in Visual Studio Code?

A Visual Studio shortcut I'm used to is CTRL+,, but it does not work here.

File Solutions


Solution 1 - File

When you have opened a folder in a workspace you can do Ctrl+P (Cmd+P on Mac) and start typing the filename, or extension to filter the list of filenames

if you have:

  • plugin.ts
  • page.css
  • plugger.ts

You can type css and press enter and it will open the page.css. If you type .ts the list is filtered and contains two items.

Solution 2 - File

Press Ctl+T will open a search box. Delete # symbol and enter your file name.

Solution 3 - File

I believe the action name is "workbench.action.quickOpen".

Solution 4 - File

It is CMD + P (or CTRL + P) by default. However the keyboard bindings may differ according to your preferences.

To know your bindings go to the "Keyboard Shortcuts" settings and search for "Go to File"

Solution 5 - File

It's Ctrl+Shift+O / Cmd+Shift+O on mac. You can see it if you close all tabs

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNenadView Question on Stackoverflow
Solution 1 - FileDick van den BrinkView Answer on Stackoverflow
Solution 2 - Filerajeev pani..View Answer on Stackoverflow
Solution 3 - FileAndrei PokrovskyView Answer on Stackoverflow
Solution 4 - FileKalpesh PopatView Answer on Stackoverflow
Solution 5 - FileAsaf PinhassiView Answer on Stackoverflow