Skip to main content

Quick Open in VS Code (macOS)

Press Command + P to open a file of the project by typing part of its name.

What it does

Quick Open shows a search box over the editor. Type part of a file name and the list narrows to the files of the workspace that match, with the files you opened recently on top. Enter opens the chosen file. The letters do not have to be next to each other in the name, so a few letters of two words are enough. It saves clicking through folders in the Explorer.

The same shortcut on other platforms

PlatformShortcut
macOSthis pageCommand + P
Windows
Linux

More VS Code shortcuts: General

  • New Window
  • Toggle Sidebar
  • Toggle panel
  • Explorer
  • Search

All 71 VS Code shortcuts for macOSThe full list has a search and a printable PDF.

Questions

What is the VS Code shortcut for Quick Open on macOS?

⌘P (Command + P). Press it to open a file of the project by typing part of its name.

What is the shortcut for Quick Open in VS Code on Windows and Linux?

On Windows it is Ctrl+P. On Linux it is Ctrl+P.