VS Code Shortcut Reference

Task-first VS Code shortcuts for editing and navigation.

Editors

This page focuses on the editor shortcuts people need repeatedly during development, phrased as tasks instead of raw key lists.

Command Palette
Windows/Linux: Ctrl+Shift+P
macOS: Cmd+Shift+P

Example: Use this when you know the action you want but do not want to hunt through menus.

Gotcha: This is the fastest entry point for commands that do not have a dedicated shortcut on your keyboard layout.

Search
Windows/Linux: Ctrl+Shift+F
macOS: Cmd+Shift+F

Example: Useful when you need to find usages of a symbol, route, or string across multiple files.

Gotcha: Global search results can be noisy in generated folders. Exclude build output in your workspace settings when needed.

Navigation
Windows/Linux: Ctrl+P
macOS: Cmd+P

Example: Type part of the filename and jump directly without browsing the explorer.

Gotcha: This is most effective when filenames are distinctive. Generic names like `index` often need more of the path typed in.

Editing
Windows/Linux: Shift+Alt+Down
macOS: Shift+Option+Down

Example: Useful when you want a copy of the current statement, config block, or markup line directly below.

Gotcha: On some systems the shortcut may conflict with input method or OS-level bindings.

Windows/Linux: F2
macOS: F2

Example: Use this when language support is available and you want consistent renaming across references.

Gotcha: Results depend on the language server or extension. In plain text files this is only a text edit, not semantic refactoring.



25 VS Code Productivity Tips and Speed Hacks

Everyone by now presumably knows about the danger of premature optimization. I think we should be just as worried about premature design - designing too early what a program should do.

Paul Graham

CodersTool Categories