Tips & Tricks ·Jun 18, 2026 ·1 min read

20 Keyboard Shortcuts Every Developer Should Know

The shortcuts that actually save time in editors, terminals and the browser — with the muscle-memory tips that make them stick.

Daniel Osei

Software Engineer & Developer Tools

Most "productivity" advice is noise. Keyboard shortcuts are not — they are measurable seconds shaved off tasks you do hundreds of times a week. These twenty cover the biggest wins across editor, terminal and browser.

Editor (VS Code / JetBrains family)

ShortcutAction
Cmd/Ctrl + PQuick-open any file
Cmd/Ctrl + Shift + PCommand palette — every command
Cmd/Ctrl + DSelect next occurrence (multi-cursor)
Alt + ↑/↓Move line up/down
Shift + Alt + ↑/↓Duplicate line
Cmd/Ctrl + /Toggle line comment
Cmd/Ctrl + Shift + KDelete line

Terminal

ShortcutAction
Cmd/Ctrl + C / VCopy / paste (with selection)
Cmd/Ctrl + RSearch command history
Ctrl + A / Ctrl + EJump to start / end of line
Ctrl + UClear the line
Ctrl + LClear the screen

Browser

ShortcutAction
Cmd/Ctrl + LFocus address bar
Cmd/Ctrl + TNew tab
Cmd/Ctrl + Shift + TReopen closed tab
Cmd/Ctrl + 1–9Jump to tab by number
/Focus page search (like on this site)

Making them stick

  • Learn five at a time, not twenty.
  • Print them or pin them — sight triggers practice.
  • Deliberately use a new one until it feels wrong to use the mouse.
  • Revisit after two weeks; the ones that stuck are the ones you needed.

The single highest-ROI shortcut in this list is Cmd/Ctrl + Shift + T (reopen a closed tab). It saves the most genuine panic per keystroke.

How long does it take to learn shortcuts?

Two weeks of deliberate use is typical for a batch of five. The key is blocking the mouse, not reading lists.

Written by Daniel Osei

Daniel builds developer tools and writes about JavaScript, JSON and everything that lives in the terminal.

Tools used in this article

JSON Formatter

Popular

Pretty-print, validate and minify JSON — securely in your browser.

Developer Tools Use tool

Related articles