Skip to main content

Command Palette

Search for a command to run...

Keyboard Shortcuts: Code Faster Without Touching Mouse

Learn: Keyboard Shortcuts: Code Faster Without Touching Mouse

Updated
7 min readView as Markdown
T

Welcome to TopperBlog! 👋

I'm a tech content creator passionate about helping developers level up their careers and master cutting-edge technologies.

🎯 What I Write About: • AI/ML Engineering & LLMs • Web3 & Blockchain Development
• System Design & Architecture • Interview Preparation (FAANG) • Freelancing & Remote Work • Modern Tech Stacks (Next.js, React, Rust, TypeScript) • Performance Optimization & Best Practices

💼 Mission: Sharing practical, actionable insights that accelerate your tech career and maximize your earning potential.

📚 15+ In-Depth Guides covering everything from earning $10k/month as a freelancer to cracking FAANG interviews.

🌐 Let's connect and grow together in this amazing tech journey!

#TechBlogger #SoftwareEngineering #CareerGrowth #WebDevelopment #AIEngineering

Keyboard Shortcuts: Code Faster Without Touching Mouse

Why This Skill Matters

Keyboard shortcuts are the difference between a developer who codes and a developer who flows. Every second spent reaching for your mouse is a second your brain context-switches away from problem-solving. Professional developers can reduce coding time by 30-40% through keyboard mastery, while simultaneously reducing repetitive strain injuries.

Beyond speed, shortcuts keep you in the zone. The cognitive load of navigating menus breaks your flow state—that precious mental space where complex problems solve themselves. Whether you're debugging at 2 AM or shipping features under deadline, keyboard proficiency is non-negotiable.

Getting Started

Choose Your IDE First

Most shortcuts are universal across modern editors (VS Code, JetBrains IDEs, Sublime), but some are platform-specific. This guide covers:

  • VS Code (most popular, cross-platform)
  • JetBrains Suite (IntelliJ, PyCharm, WebStorm)
  • Sublime Text (lightweight alternative)
  • macOS vs Windows/Linux variations

The Learning Curve

Don't memorize everything at once. Start with 5-10 shortcuts you use daily, then add 3-5 weekly. Your fingers will develop muscle memory faster than your conscious mind can recall them.

Essential Commands/Shortcuts

Navigation & Selection

ActionVS CodeJetBrainsSublime
Go to LineCtrl+GCtrl+GCtrl+G
Go to FileCtrl+PCtrl+Shift+NCtrl+P
Go to SymbolCtrl+Shift+OCtrl+Alt+Shift+NCtrl+R
Find in FilesCtrl+Shift+FCtrl+Shift+FCtrl+Shift+F
Select WordCtrl+DCtrl+DCtrl+D
Expand SelectionShift+Alt+→Shift+Ctrl+→Ctrl+Shift+Space
Jump to BracketCtrl+Shift+\Ctrl+Shift+MCtrl+M

Pro Tip: Ctrl+P then type @ in VS Code to search symbols in current file—faster than scrolling.

Editing & Manipulation

ActionVS CodeJetBrainsSublime
Delete LineCtrl+Shift+KCtrl+YCtrl+Shift+K
Duplicate LineCtrl+Shift+DCtrl+DCtrl+Shift+D
Move Line Up/DownAlt+↑/↓Alt+Shift+↑/↓Ctrl+Shift+↑/↓
Comment LineCtrl+/Ctrl+/Ctrl+/
Multi-line CommentShift+Alt+ACtrl+Shift+/Shift+Alt+A
Insert Line BelowCtrl+EnterShift+EnterCtrl+Enter
Insert Line AboveCtrl+Shift+EnterCtrl+Alt+EnterCtrl+Shift+Enter

Real-world scenario: Refactoring a function? Select the entire block with Shift+Alt+↓, duplicate with Ctrl+Shift+D, then modify. Done in seconds.

Search & Replace

ActionVS CodeJetBrainsSublime
FindCtrl+FCtrl+FCtrl+F
ReplaceCtrl+HCtrl+HCtrl+H
Find NextF3F3F3
Replace AllCtrl+Alt+EnterCtrl+Alt+Shift+EnterCtrl+Alt+Enter
Use RegexToggle .* iconToggle .* iconToggle .* icon

Advanced: Use regex with capture groups: Find (\w+)\s*=\s*(\w+) and replace with $2 = $1 to swap variables instantly.

Code Formatting & Refactoring

ActionVS CodeJetBrainsSublime
Format DocumentShift+Alt+FCtrl+Alt+LEdit → Line → Reindent
Format SelectionCtrl+K Ctrl+FCtrl+Alt+LN/A
Rename SymbolF2Shift+F6Ctrl+F2
Extract VariableCtrl+Alt+VCtrl+Alt+VN/A
Extract MethodCtrl+Alt+MCtrl+Alt+MN/A
Quick FixCtrl+.Alt+EnterN/A

Game-changer: F2 to rename a variable across your entire codebase instantly. No more find-and-replace anxiety.

Terminal & Debugging

ActionVS CodeJetBrainsSublime
Toggle TerminalCtrl+` Alt+F12Ctrl+`
New Terminal`Ctrl+Shift+``Ctrl+Alt+F12N/A
Debug: StartF5Shift+F9N/A
Debug: Step OverF10F8N/A
Debug: Step IntoF11F7N/A
Debug: ContinueF5F9N/A

Advanced Techniques

Multi-Cursor Editing

VS Code: Ctrl+Alt+↓ adds a cursor on the next line. Edit simultaneously across multiple lines.

// Before: Three similar variable declarations
const name = "John"
const age = 25
const city = "NYC"

// Use Ctrl+Alt+↓ twice, then type to edit all at once
const user_name = "John"
const user_age = 25
const user_city = "NYC"

JetBrains: Alt+Shift+Click to place cursors anywhere. Or Ctrl+Shift+L to select all occurrences of current word.

Command Palette

VS Code: Ctrl+Shift+P opens the command palette. Type partial commands—no need to memorize exact names.

> format doc     → Formats entire document
> git commit     → Opens git commit dialog
> ext install    → Opens extension installer

JetBrains: Ctrl+Shift+A (Windows/Linux) or Cmd+Shift+A (Mac) for action search.

Bracket Pair Navigation

VS Code: Ctrl+Shift+\ jumps to matching bracket. Essential for nested structures.

def function():
    if condition:
        for item in list:
            # Cursor here, press Ctrl+Shift+\ to jump to matching bracket
            process(item)

Snippet Expansion

Most IDEs support custom snippets. Create shortcuts for repetitive code:

{
  "console.log": {
    "prefix": "log",
    "body": "console.log($1);",
    "description": "Log to console"
  }
}

Type log + Tab → instant console.log();

Practice Drills

Week 1: Foundation (5 shortcuts)

  • Navigate: Ctrl+P, Ctrl+G, Ctrl+F
  • Edit: Ctrl+/, Ctrl+Shift+K
  • Daily drill: Open 10 files using Ctrl+P, find 5 lines using Ctrl+G

Week 2: Efficiency (5 new shortcuts)

  • Editing: Ctrl+Shift+D, Alt+↑/↓, Ctrl+H
  • Refactoring: F2
  • Daily drill: Refactor a function using only keyboard shortcuts

Week 3: Mastery (5 advanced shortcuts)

  • Multi-cursor: Ctrl+Alt+↓
  • Command palette: Ctrl+Shift+P
  • Debugging: F5, F10, F11
  • Daily drill: Debug a program without touching the mouse

Gamification: Time yourself completing coding tasks. Track improvements weekly.

Integration with Workflow

Git Operations

Combine shortcuts with terminal commands:

# Terminal shortcut: Ctrl+` (toggle terminal)
git add .
git commit -m "message"
git push

# Then Alt+Tab back to editor

Debugging Workflow

1. Set breakpoint: Click line number (or Ctrl+B in some IDEs)
2. Start debug: F5
3. Step through: F10 (step over) or F11 (step into)
4. Inspect: Hover over variables or use watch panel
5. Continue: F5

Code Review Process

1. Open file: Ctrl+P
2. Find changes: Ctrl+F
3. Navigate: Ctrl+G
4. Comment: Ctrl+/ to understand code
5. Rename for clarity: F2

Pro Tips

1. Customize Your Shortcuts

Don't like default bindings? Change them. VS Code: Ctrl+K Ctrl+S opens keybindings. JetBrains: Settings → Keymap.

2. Learn IDE-Specific Power Features

  • VS Code: Remote development with Ctrl+Shift+P → Remote-SSH
  • JetBrains: Structural search with Ctrl+Shift+S
  • Sublime: Goto anything with Ctrl+P then : for line numbers

3. Use Keyboard Shortcuts for Mouse-Heavy Tasks

  • Opening files: Ctrl+P instead of file explorer
  • Running tests: Ctrl+Shift+P → Run Test instead of clicking buttons
  • Switching tabs: Ctrl+Tab instead of clicking

4. Create a Cheat Sheet

Print your top 20 shortcuts and tape them to your monitor for the first month. Muscle memory develops faster with visual reinforcement.

5. Combine Shortcuts for Power Moves

Ctrl+H (replace) → Type pattern → Alt+Enter (replace all) → Ctrl+Z (undo if wrong)

6. Platform-Specific Optimization

  • macOS: Learn Cmd vs Ctrl differences
  • Linux: Some shortcuts conflict with window managers; customize accordingly
  • Windows: Embrace Ctrl+Shift combinations

Summary

Keyboard shortcuts transform coding from a mechanical process into a fluid, creative activity. The investment of 3-4 weeks learning these shortcuts pays dividends for your entire career.

Key Takeaways:

✓ Start with 5-10 essential shortcuts, expand gradually
✓ Navigation (Ctrl+P, Ctrl+G) and editing (Ctrl+/, Ctrl+Shift+K) are highest ROI
✓ Multi-cursor editing and command palette unlock advanced workflows
✓ Customize shortcuts to match your muscle memory
✓ Practice daily—muscle memory compounds
✓ Combine shortcuts for exponential productivity gains

The developers shipping features fastest aren't smarter—they're just faster with their keyboards. Start today, and in a month, you'll wonder how you ever coded with a mouse.


Next Steps: Pick your IDE, learn 5 shortcuts this week, and time yourself on a coding task. Measure again in 2 weeks. The improvement will surprise you.