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
| Prefix | Shortcut (Win/Linux) | Shortcut (macOS) | Action |
|---|---|---|---|
| (none) | Ctrl+P | Cmd+P | Open file by name |
| @ | Ctrl+Shift+O | Cmd+Shift+O | Go to symbol in current file |
| # | Ctrl+T | Cmd+T | Go to symbol in workspace |
| : | Ctrl+G | Cmd+G | Go to line number |
| > | Ctrl+Shift+P | Cmd+Shift+P | Run 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.
Navigation history
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
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.
Frequently Asked Questions
What is the difference between Quick Open and the Command Palette?
Can I open multiple files from Quick Open?
How do I search symbols across the whole project?
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.
More in this topic
How to Use VS Code with WSL 2 on Windows
Run VS Code connected to Windows Subsystem for Linux so you can develop in a full Linux environment with native tools, terminals, and debugging, all from Windows.
20 Best VS Code Extensions for Web Developers in 2026
Twenty carefully chosen VS Code extensions every web developer should know. Covers formatting, linting, frameworks, debugging, Git, and developer experience.
How to Install, Disable, Update, and Uninstall VS Code Extensions
Learn how to install, disable, update, and uninstall VS Code extensions from the Marketplace and the command line. Step-by-step instructions for every action.