Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I search for files in Visual Studio Code?

I am used to Resharper where I can search for files, not the content, but the filename, which makes it quick to open new files.

Is this feature implemented in Visual Studio Code and is there a shortcut for it?

like image 524
Dofs Avatar asked May 07 '15 08:05

Dofs


People also ask

How do I search inside files in Visual Studio?

The new experience is available by searching for “Find in Files” or “Replace in Files” in Visual Studio search (Ctrl+Q by default). You can also get to these commands with Ctrl+Shift+F and Ctrl+Shift+H respectively.

How do I open the search bar in VS Code?

which would put the search widget into the terminal panel as another tab. As of vscode v1. 35 or so, you can now right-click in the empty space below the search view (i.e., in the sidebar under the open search inputs) and you will get an option to Toggle Search View Position .


2 Answers

Using Go to File... which is under the Go menu or using keyboard shortcut:

  • On Windows Ctrl+p or Ctrl+e
  • On macOS Cmd ⌘+p
  • On Linux Ctrl+p or Ctrl+e

Then type the file name.

Also be sure to checkout that you can set your own keybindings and that there are cheatsheets available for Windows, macOS and Linux.

like image 88
Mike Avatar answered Oct 09 '22 21:10

Mike


On OSX, for me it's cmd ⌘ + p. cmd ⌘ + e just searches within the currently opened file.

like image 38
nikk wong Avatar answered Oct 09 '22 21:10

nikk wong