Top 10 VS Code Shortcuts Every Developer Should Know (2026)
Published: March 15, 2026 · Updated: April 1, 2026
Visual Studio Code has become the most popular code editor in the world, and for good reason. But most developers only use a fraction of its powerful keyboard shortcuts. Here are the 10 shortcuts that will make the biggest difference in your daily workflow.
1. Ctrl+P — Quick Open Files
Stop clicking through the file explorer. Press Ctrl+P and start typing any filename. VS Code uses fuzzy matching, so typing "idx" will match "index.tsx". This alone saves minutes every hour.
2. Ctrl+Shift+P — Command Palette
The command palette is VS Code's Swiss Army knife. Every action in VS Code can be accessed here — changing themes, installing extensions, formatting code, and more. Think of it as a search engine for IDE features.
3. Ctrl+D — Multi-Cursor Selection
Place your cursor on a word and press Ctrl+D repeatedly to select each next occurrence. Then type to replace all of them simultaneously. This is faster than Find & Replace for quick refactoring.
4. Alt+Up/Down — Move Lines
Select a line (or multiple lines) and press Alt+Up or Alt+Down to move them. No more cut-paste for reordering code. Hold Shift to copy the line instead.
5. Ctrl+` — Toggle Terminal
Press Ctrl+` (backtick) to toggle the integrated terminal. Run build commands, git operations, and scripts without leaving your editor.
6. Ctrl+/ — Toggle Comment
Select any lines and press Ctrl+/ to comment or uncomment them. Works in every language VS Code supports.
7. Ctrl+Shift+F — Search Across Files
Need to find where a function is used across your entire project? Ctrl+Shift+F opens project-wide search with regex support and file filtering.
8. Alt+Click — Multiple Cursors
Hold Alt and click at multiple positions to place cursors there. Then type to edit all positions simultaneously. Perfect for editing structured data or HTML attributes.
9. Ctrl+Shift+K — Delete Line
Delete the entire current line instantly without selecting it first. Much faster than Home → Shift+End → Delete.
10. Ctrl+B — Toggle Sidebar
Maximize your coding area by toggling the sidebar with Ctrl+B. Open it when you need the file explorer, hide it when you need screen space.
Bonus: AI-Powered Shortcuts
If you use GitHub Copilot, add these to your repertoire: Tab to accept suggestions, Alt+] to cycle through alternatives, and Ctrl+I for inline chat. For Cursor AI users, Ctrl+L opens the Cascade AI panel.
Search shortcuts for 230 platforms interactively
Open Shortcut Finder