Find a file by name in Visual Studio Code

Nenad picture Nenad · Sep 18, 2015 · Viewed 127.2k times · Source

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

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

Answer

Dick van den Brink picture Dick van den Brink · Sep 18, 2015

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.