Skip to content

BLOG

50 Keyboard Shortcuts Every Developer Should Know in 2026

April 13, 2026 · 15 min read

I once watched a senior engineer refactor an entire file without touching the mouse. Not once. The cursor flew between functions, selections wrapped around blocks, and lines shuffled positions like a card trick. It took maybe three minutes. I asked what extensions they were using. The answer: "None. Just shortcuts." That moment changed how I work, and it was worth hundreds of hours over the following years.

Keyboard shortcuts are not about looking cool. They are about removing friction between your brain and the code. Every time you reach for the mouse, find a menu item, click through options, and drag back to the editor, you break flow. Multiply that interruption by a few hundred times a day, and you are losing real productivity. The shortcuts below are the ones that actually matter in daily development work across VS Code, JetBrains IDEs, terminal emulators, and browser DevTools.

Universal Text Editing Shortcuts

These work almost everywhere: your editor, your browser, Slack, even most form fields. They are the foundation, and surprisingly, many developers still do not use all of them.

ActionMacWindows / Linux
Select allCmd + ACtrl + A
CopyCmd + CCtrl + C
CutCmd + XCtrl + X
PasteCmd + VCtrl + V
UndoCmd + ZCtrl + Z
RedoCmd + Shift + ZCtrl + Y
FindCmd + FCtrl + F
Find and replaceCmd + Option + FCtrl + H
Move cursor to line startCmd + LeftHome
Move cursor to line endCmd + RightEnd
Delete word backwardOption + BackspaceCtrl + Backspace
Delete word forwardOption + DeleteCtrl + Delete
Select wordOption + Shift + Left/RightCtrl + Shift + Left/Right

The one shortcut most people miss: delete word backward. Instead of hammering backspace twelve times, one keystroke removes an entire variable name. It sounds small. Over a day it saves hundreds of keystrokes.

VS Code Shortcuts That Change Everything

VS Code dominates the editor market in 2026, and for good reason: its shortcut system is dense and well thought out. These are the ones that separate quick editing sessions from truly fast workflows.

ActionMacWindows / Linux
Command PaletteCmd + Shift + PCtrl + Shift + P
Quick Open fileCmd + PCtrl + P
Toggle sidebarCmd + BCtrl + B
Toggle terminalCtrl + `Ctrl + `
Go to lineCtrl + GCtrl + G
Go to symbolCmd + Shift + OCtrl + Shift + O
Multi-cursor (add above/below)Cmd + Option + Up/DownCtrl + Alt + Up/Down
Select all occurrences of wordCmd + Shift + LCtrl + Shift + L
Add next occurrence to selectionCmd + DCtrl + D
Move line up/downOption + Up/DownAlt + Up/Down
Duplicate lineShift + Option + DownShift + Alt + Down
Delete entire lineCmd + Shift + KCtrl + Shift + K
Comment/uncomment lineCmd + /Ctrl + /
Format documentShift + Option + FShift + Alt + F
Fold/unfold code blockCmd + Option + [/]Ctrl + Shift + [/]
Rename symbolF2F2
Peek definitionOption + F12Alt + F12
Go to definitionF12F12
Split editorCmd + \Ctrl + \
Close current tabCmd + WCtrl + W

The real power combo: Cmd + D (or Ctrl + D) to incrementally select matching words, then type the replacement. No find-and-replace dialog, no regex, just direct multi-cursor editing. It is faster than any search panel for renaming a variable that appears five or six times in a function.

When you need to compare two versions of a file after making changes, the Diff Checker gives you a side-by-side view that no split editor can match. Paste the before and after, see exactly what changed.

JetBrains IDE Shortcuts (IntelliJ, WebStorm, PyCharm)

JetBrains IDEs share the same shortcut system. If you use IntelliJ for Java and PyCharm for Python, the muscle memory transfers perfectly.

ActionMacWindows / Linux
Search EverywhereDouble ShiftDouble Shift
Find ActionCmd + Shift + ACtrl + Shift + A
Navigate to fileCmd + Shift + OCtrl + Shift + N
Navigate to symbolCmd + Option + OCtrl + Alt + Shift + N
Refactor thisCtrl + TCtrl + Alt + Shift + T
Generate codeCmd + NAlt + Insert
Extend selectionOption + UpCtrl + W
Shrink selectionOption + DownCtrl + Shift + W
Recent filesCmd + ECtrl + E
Run current configCtrl + RShift + F10

Double Shift is the single most underused JetBrains shortcut. It searches files, symbols, actions, settings, and Git branches from one input field. If you only learn one JetBrains shortcut, make it this one.

Terminal and Shell Shortcuts

Whether you use Bash, Zsh, or Fish, the readline shortcuts below work in most terminal emulators. Knowing these means you never need to retype a long command because of a typo at the beginning.

ActionShortcut
Move to beginning of lineCtrl + A
Move to end of lineCtrl + E
Move backward one wordAlt + B
Move forward one wordAlt + F
Delete from cursor to end of lineCtrl + K
Delete from cursor to start of lineCtrl + U
Delete previous wordCtrl + W
Paste last deleted textCtrl + Y
Reverse search historyCtrl + R
Clear screenCtrl + L
Cancel current commandCtrl + C
Suspend processCtrl + Z

Ctrl + R for reverse history search deserves its own paragraph. Instead of pressing the up arrow forty times to find that Docker command you ran last Tuesday, press Ctrl + R and start typing any part of it. The shell finds it instantly. Press Ctrl + R again to cycle through older matches.

Browser DevTools Shortcuts

Debugging in the browser is half of frontend development. These shortcuts keep you in the flow while inspecting elements, stepping through code, and watching network requests.

ActionMacWindows / Linux
Open DevToolsCmd + Option + IF12
Inspect elementCmd + Option + CCtrl + Shift + C
Open consoleCmd + Option + JCtrl + Shift + J
Toggle device toolbarCmd + Shift + MCtrl + Shift + M
Search across all sourcesCmd + Option + FCtrl + Shift + F
Step over (debugger)F10F10
Step into (debugger)F11F11
Resume executionF8F8

Quick tip: Cmd + Shift + M toggles responsive mode instantly. No need to manually resize the browser window when testing mobile layouts. Combine it with the CSS Flexbox Generator to prototype responsive layouts without guessing at flex values.

Git Command-Line Shortcuts

Git does not have built-in keyboard shortcuts in the traditional sense, but aliases serve the same purpose. Add these to your ~/.gitconfig and you will type half as much:

[alias]
  co = checkout
  br = branch
  ci = commit
  st = status
  lg = log --oneline --graph --decorate
  last = log -1 HEAD
  unstage = reset HEAD --
  amend = commit --amend --no-edit

With these aliases, git st replaces git status, and git lg gives you a compact, visual log. The amend alias is particularly useful when you forgot to add a file to the last commit. Just stage it and run git amend.

Code Navigation Patterns

Shortcuts are most powerful when chained together. Here are three patterns that experienced developers use constantly:

Pattern 1: Quick variable rename. Place your cursor on a variable name. Press Cmd + D repeatedly to select each occurrence in the function. Type the new name. Done. No dialog, no regex, no confirmation prompts. If you need to verify the change afterward, paste the before and after into the Diff Checker.

Pattern 2: Extract and move. Select a block of code with Shift + Arrow keys (or Option + Up in JetBrains to smart-select). Cut it with Cmd + X. Use Cmd + P to quick-open the target file. Navigate to the right spot with Ctrl + G (go to line). Paste. The entire operation takes maybe five seconds with no mouse.

Pattern 3: Regex search across project. Press Cmd + Shift + F for project-wide search. Toggle regex mode. Write your pattern. This is where knowing regex syntax pays off, and if you are building or testing a pattern, the Regex Tester gives you live match highlighting as you type.

Shortcuts for Formatting and Readability

Messy formatting slows down code review and introduces subtle bugs. These shortcuts keep your code clean without thinking about it:

ActionVS Code (Mac)VS Code (Win/Linux)
Format documentShift + Option + FShift + Alt + F
Format selectionCmd + K, Cmd + FCtrl + K, Ctrl + F
Indent lineCmd + ]Ctrl + ]
Outdent lineCmd + [Ctrl + [
Toggle word wrapOption + ZAlt + Z

Format-on-save (configured via editor.formatOnSave in VS Code settings) is even better than a shortcut because it requires zero keystrokes. But when you are working on someone else's project without that setting, Shift + Option + F keeps things tidy.

For JSON specifically, formatting messy API responses is a daily task. Paste unformatted JSON into the JSON Formatter to get properly indented output with syntax highlighting and error detection. It catches trailing commas and unquoted keys that your editor might miss.

Productivity Multipliers

Beyond individual shortcuts, a few meta-habits compound their effectiveness:

Learn one new shortcut per week. Not five, not ten. One. Use it deliberately until it becomes automatic. Then add the next one. In a year, you will have fifty new shortcuts in muscle memory.

Print a cheat sheet and tape it to your monitor. Seriously. It sounds old-fashioned, but visual reminders work. After a week of glancing at it, the shortcuts stick. You can then remove the paper.

Rebind shortcuts that conflict. If two tools fight over the same combo, pick one and rebind the other. In VS Code, open Keyboard Shortcuts (Cmd + K, Cmd + S) and search for conflicts. Unresolved conflicts mean you never build the habit because the shortcut does the wrong thing half the time.

Use snippet shortcuts. Custom snippets in your editor are shortcuts for entire code blocks. A trigger like rfc can expand into a full React functional component skeleton. Define snippets for patterns you write more than twice a week.

Sharing Code with Shortcuts

When you want to share a piece of code with your team, a screenshot often communicates better than a Slack message. The Code Screenshot tool turns any code block into a clean, syntax-highlighted image. Select your theme, adjust padding, pick the language, and download a PNG ready for documentation, presentations, or social media.

Building the Habit

The biggest barrier to using shortcuts is not memorization. It is the awkward phase where you know the shortcut exists but reaching for the mouse is still faster because the key combo is not yet in your fingers. Push through that phase deliberately. For the first three days, the shortcut will be slower. By day five, it will be the same speed. By day ten, you cannot imagine doing it any other way.

Start with the shortcuts you would use most often. For most developers, that means multi-cursor editing, quick file opening, and terminal history search. Those three alone eliminate a surprising amount of mouse usage. Add the rest gradually, and within a few months, your hands will rarely leave the keyboard.

All the developer tools mentioned here, from the Regex Tester to the JSON Formatter and Diff Checker, run entirely in your browser with no server-side processing. Your code can be processed without a FastTool upload workflow.