Mark Mwangi logoMark
Mwangi
Return to home
Get in
touch
Admin
login
ToolingJuly 25, 20268 min read

VS Code shortcuts that actually save time

The VS Code keyboard shortcuts worth memorizing — navigation, editing, multi-cursor, and refactor moves that compound into hours saved.

By Mark Mwangi
VS Code shortcuts that actually save time cover coverImage

Editors reward muscle memory. The fastest developers are not smarter; they just never take their hands off the keyboard to hunt through menus. Below are the VS Code shortcuts I use every day, grouped by what they help you do. Learn a few per week and they will become automatic.

Navigation

  • `Ctrl/Cmd + P` — Quick open any file by name.
  • `Ctrl/Cmd + Shift + P` — Command palette (runs anything).
  • `Ctrl/Cmd + T` — Go to symbol across the project.
  • `F12` — Go to definition.
  • `Alt + F12` — Peek definition (no tab switch).
  • `Ctrl/Cmd + G` — Jump to a line number.
  • Ctrl/Cmd + backtick key — Split editor.
  • `Ctrl + -` / `Ctrl + Shift + -` — Go back / forward through cursor history.

Editing

  • `Ctrl/Cmd + D` — Select next occurrence (great for rename-in-place).
  • `Ctrl/Cmd + Shift + L` — Select all occurrences of the current word.
  • `Alt + Click` — Add multiple cursors.
  • `Ctrl/Cmd + Alt + Arrow` — Add a cursor above/below.
  • `Ctrl/Cmd + /` — Toggle line comment.
  • `Alt + Arrow` — Move the current line up/down.
  • `Shift + Alt + Arrow` — Copy the line up/down.
  • `Ctrl/Cmd + Enter` — Insert a line below without moving the cursor.

Refactoring

  • `F2` — Rename symbol across the project.
  • `Ctrl/Cmd + .` — Quick fix / show refactoring actions.
  • `Ctrl/Cmd + K, Ctrl/Cmd + F` — Format the selection.
  • `Ctrl/Cmd + K, Ctrl/Cmd + S` — Open the full keyboard shortcuts reference.

Terminal & panes

  • Ctrl/Cmd + backtick key — Toggle the integrated terminal.
  • `Ctrl/Cmd + B` — Toggle the sidebar.
  • `Ctrl/Cmd + J` — Toggle the panel (terminal, problems, output).

Build a habit

Don't try to memorize all of them. Pick the three you'd use most this week:

1. Ctrl/Cmd + P for opening files. 2. Ctrl/Cmd + D for multi-edit renames. 3. F12 for jumping to definitions.

Once those are reflex, add three more. Within a month your editing speed will feel completely different, and you'll rarely touch the mouse while coding.

VS CodeDevelopmentBest Practices
Go back to all blogs →Go to all projects →Contact →

Related Articles

  • Getting started with Supabase
  • How to solve merge conflicts
  • Tools every developer should know

About

Mark Mwangi

Creating secure and meaningful digital experiences.

Software developer focused on secure, responsive, and high-quality digital experiences.

Socials

GitHubLinkedInXE-mailinstagramfacebookwhatsappMedium

© 2026 Mark Mwangi | All rights reserved

Terms of Service•Privacy Policy

Last updated: April 30, 2026 16:23:51 UTC