All cheat sheets

VSCode Hotkeys I Actually Use Every Day

A short list of VSCode keyboard shortcuts worth memorizing, from searching every file at once to fixing a line that scrolls off screen.

2 min read

VSCode ships with a huge shortcut list and most of it never gets touched. Here's the handful I actually reach for, working day to day with SQL scripts, Python, and config files.

Search and navigation

ShortcutWhat it does
Ctrl+Shift+FSearch for a string across every file in the project at once, not just the one that's open. First thing I hit when I need to find every place a column name or a config key shows up.
Ctrl+PJump to any file by typing part of its name.
Ctrl+GJump straight to a line number.
Ctrl+TabCycle through open tabs.

Editing

ShortcutWhat it does
Alt+ZToggle word wrap on the current file. Turns a long SQL query or a wide CSV row into something you can actually read without scrolling sideways.
Alt+Up / Alt+DownMove the current line up or down.
Ctrl+DSelect the next occurrence of whatever's highlighted. Keep hitting it to select them all and edit at once.
Ctrl+Shift+LSelect every occurrence of the current selection in the file in one go, instead of stepping through them with Ctrl+D.
Ctrl+/Comment out the current line or selection.
F2Rename a variable, function, or reference everywhere it's used in the file.
Ctrl+Shift+KDelete the current line, no need to select it first.

View

ShortcutWhat it does
Ctrl+`Toggle the integrated terminal.
Ctrl+BToggle the sidebar.
Ctrl+Shift+EJump focus to the file explorer.