How to Find Files and Symbols Fast with Quick Open in VS Code

Open files, jump to symbols, and go to any line in seconds with Quick Open. Learn the keyboard shortcuts that replace the mouse.

5 min read

Quick Open lets you open any file in your project in seconds without touching the mouse or browsing the file tree. You type part of a file name, and VS Code finds it instantly.

Press Ctrl+P on Windows and Linux, or Cmd+P on macOS.

Opening a file by name

Open Quick Open

Press Ctrl+P on Windows and Linux, or Cmd+P on macOS. A search box appears at the top of the window.

Type part of the file name

Type a few letters. Quick Open matches file names and folder paths. For example, type btn to find Button.tsx, Button.module.css, or any file with those letters in the name or path.

Select the file

Use the arrow keys to highlight the right file and press Enter. The file opens in the editor.

Quick Open uses fuzzy matching. You do not need to type consecutive letters. Typing bts matches Button.styles.ts because the letters appear in order, even with other characters between them.

Recently opened files appear at the top of the list.

Opening multiple files

When you find a file in Quick Open, press Right Arrow instead of Enter. The file opens in the background, and Quick Open stays active. You can open several files this way before pressing Escape to close the dialog.

Switching between recently opened files

Press Ctrl+P again without typing anything. Each press cycles through your recently opened files. This is the fastest way to bounce between two or three files you are actively working on.

For more control, hold Ctrl and press Tab to see a list of open files. Keep holding Ctrl, press Tab to move, and release Ctrl to open.

Searching symbols in the current file

Press Ctrl+Shift+O on Windows and Linux, or Cmd+Shift+O on macOS. This opens Quick Open with the @ prefix, showing every symbol in the current file: functions, classes, methods, variables, and more.

Type to filter the list. Type @: to group symbols by category, like functions, classes, and variables.

This is useful in long files. Instead of scrolling, press Ctrl+Shift+O, type a function name, and jump directly to it.

Searching symbols across the workspace

Press Ctrl+T on Windows and Linux, or Cmd+T on macOS. This opens Quick Open with the # prefix, searching symbols across every file in your project.

Type a function or class name. VS Code finds it regardless of which file contains it. Press Enter to open that file at the symbol's location.

Jumping to a line number

Press Ctrl+G and type a line number. Press Enter to jump there.

You can also type a file name, colon, and line number directly in Quick Open: app.ts:42 opens app.ts at line 42. Add a colon and column number for more precision: app.ts:42:10 opens app.ts at line 42, column 10.

All Quick Open prefixes

PrefixShortcut (Win/Linux)Shortcut (macOS)Action
(none)Ctrl+PCmd+POpen file by name
@Ctrl+Shift+OCmd+Shift+OGo to symbol in current file
#Ctrl+TCmd+TGo to symbol in workspace
:Ctrl+GCmd+GGo to line number
>Ctrl+Shift+PCmd+Shift+PRun a command
?(type in Quick Open)(type in Quick Open)Show help for all prefixes

Type ? in the Quick Open input box to see every prefix shortcut listed.

Quick Open is fast for opening files, but you also need to go back to where you were.

  • Windows: Alt+Left to go back, Alt+Right to go forward
  • Linux: Ctrl+Alt+- to go back, Ctrl+Shift+- to go forward
  • macOS: Ctrl+- to go back, Ctrl+Shift+- to go forward

These work across files. If you jump from index.ts to utils.ts with Quick Open, use the go back shortcut for your platform to return to index.ts at the exact line you left.

Next steps

Quick Open handles file navigation. For splitting your editor into multiple panes so you can see files side by side, learn how to split editors and manage tabs. For running any editor command from the keyboard, use the Command Palette.

Rune AI

Rune AI

Key Insights

  • Ctrl+P (Cmd+P on macOS) opens Quick Open for file search.
  • Ctrl+Shift+O (Cmd+Shift+O) searches symbols in the current file.
  • Ctrl+T (Cmd+T) searches symbols across the entire workspace.
  • Ctrl+G (Cmd+G) jumps to a specific line number.
  • Type partial names. Quick Open does fuzzy matching.
  • Press Right Arrow to open a file in the background and keep searching.
RunePowered by Rune AI

Frequently Asked Questions

What is the difference between Quick Open and the Command Palette?

Quick Open (Ctrl+P / Cmd+P) defaults to file search. The Command Palette (Ctrl+Shift+P / Cmd+Shift+P) defaults to command search. They share the same input box. You can type > in Quick Open to search commands, or delete the > in the Command Palette to search files.

Can I open multiple files from Quick Open?

Yes. Press Right Arrow on a file in the list to open it in the background while keeping Quick Open active. You can select and open several files this way before closing the dialog.

How do I search symbols across the whole project?

Press Ctrl+T (Windows/Linux) or Cmd+T (macOS). Type the symbol name. This searches all files in your workspace, not just the current one.

Conclusion

Quick Open replaces the file tree for navigation. Press Ctrl+P, type a few letters of the file name, and press Enter. Use @ for symbols, : for line numbers, # for workspace symbols. Once you build the habit, you will browse files with the Explorer less and navigate with the keyboard more.