Turning Learners Into Developers
Codekilla
CODEKILLA
VS Code 8 min

VS Code Shortcut Keys (Complete List)

Read on to explore vs code shortcut keys (complete list) — a beginner-friendly walkthrough by Codekilla.

Rahul Chaudhary Thu Apr 30 2026
What is VS Code and Why Shortcuts Matter?

Visual Studio Code (VS Code) is a lightweight, powerful code editor developed by Microsoft. It's free, open-source, and supports virtually every programming language through extensions. While you can accomplish everything by clicking through menus, keyboard shortcuts transform VS Code from a simple text editor into a speed demon that keeps your hands on the keyboard and your workflow uninterrupted.

Think of shortcuts as the difference between typing and hunt-and-peck. Sure, both get words on screen, but one makes you 10x faster. The same principle applies here—mastering even a dozen shortcuts will dramatically increase your coding speed and reduce mental friction when switching between tasks.

Why It Matters
  • Speed: Navigate files, edit code, and debug without breaking focus to grab your mouse every 5 seconds
  • Flow State: Staying on the keyboard helps you maintain deep concentration during complex problem-solving
  • Professionalism: Senior developers use shortcuts instinctively—learning them signals you're serious about your craft
  • Reduced Strain: Minimizing mouse movement prevents repetitive strain injuries over long coding sessions
  • Productivity Multiplier: A 2-second action done 100 times daily saves 3+ minutes—that's hours per week
General Editor Shortcuts

These are your bread-and-butter commands for daily file management and basic editing. You'll use these dozens of times per session.

ActionWindows/LinuxMac
Command PaletteCtrl+Shift+PCmd+Shift+P
Quick Open FileCtrl+PCmd+P
New WindowCtrl+Shift+NCmd+Shift+N
Close WindowCtrl+WCmd+W
SettingsCtrl+,Cmd+,
Toggle SidebarCtrl+BCmd+B

The Command Palette (Ctrl+Shift+P) is your superpower. It gives you access to every VS Code command through fuzzy search. If you forget a shortcut, just open the palette and type what you want.

javascript
// Use Ctrl+P to quickly jump to this file by typing "user-service"
class UserService {
  constructor(database) {
    this.db = database;
  }
  
  async findUser(id) {
    return await this.db.users.findById(id);
  }
}

Moving around your codebase efficiently separates beginners from experienced developers. These shortcuts let you jump between files, lines, and symbols without scrolling or searching.

ActionWindows/LinuxMac
Go to LineCtrl+GCmd+G
Go to SymbolCtrl+Shift+OCmd+Shift+O
Go to DefinitionF12F12
Peek DefinitionAlt+F12Option+F12
Go BackAlt+LeftCtrl+-
Go ForwardAlt+RightCtrl+Shift+-
Navigate Editor GroupsCtrl+1/2/3Cmd+1/2/3

Go to Symbol (Ctrl+Shift+O) is criminally underused. In a 500-line file, typing @render instantly jumps to your render function instead of scrolling blindly.

python
# Press Ctrl+Shift+O and type "calculate" to jump here instantly
def calculate_discount(price, percentage):
    discount = price * (percentage / 100)
    return price - discount

def calculate_tax(subtotal, rate):
    return subtotal * rate

def calculate_total(items):
    return sum(item['price'] for item in items)
Editing Shortcuts

These commands manipulate text and code structure. Mastering multi-cursor editing alone will make you feel like a wizard.

ActionWindows/LinuxMac
Copy Line DownShift+Alt+DownShift+Option+Down
Move Line Up/DownAlt+Up/DownOption+Up/Down
Delete LineCtrl+Shift+KCmd+Shift+K
Add Cursor Above/BelowCtrl+Alt+Up/DownCmd+Option+Up/Down
Select All OccurrencesCtrl+Shift+LCmd+Shift+L
Add Selection to Next FindCtrl+DCmd+D
Toggle CommentCtrl+/Cmd+/
Block CommentShift+Alt+AShift+Option+A

Multi-cursor editing (Ctrl+D to select next occurrence) is a game-changer. Need to rename a variable in 8 places? Select it, hit Ctrl+D seven times, and type the new name once.

css
/* Select "primary" and press Ctrl+D repeatedly, then type "accent" */
.button-primary { background: #007bff; }
.border-primary { border-color: #007bff; }
.text-primary { color: #007bff; }
.hover-primary:hover { background: #0056b3; }
Search and Replace Shortcuts

Finding and replacing text across files is essential when refactoring. These shortcuts make it painless.

ActionWindows/LinuxMac
FindCtrl+FCmd+F
ReplaceCtrl+HCmd+H
Find in FilesCtrl+Shift+FCmd+Shift+F
Replace in FilesCtrl+Shift+HCmd+Shift+H
Next/Previous MatchF3 / Shift+F3Cmd+G / Cmd+Shift+G

Find in Files (Ctrl+Shift+F) searches your entire project. When combined with regex, you can find every instance of a pattern across hundreds of files in seconds.

regex
// Use Ctrl+Shift+F with this regex to find all console.log statements
console\.log\([^)]+\)

// Example matches:
console.log("User logged in");
console.log({ userId: 123, action: 'click' });
Display and Window Management

Split editors, toggle panels, and manage your workspace layout for maximum screen real estate.

ActionWindows/LinuxMac
Split EditorCtrl+\Cmd+\
Toggle TerminalCtrl+ `Ctrl+ `
Zen ModeCtrl+K ZCmd+K Z
FullscreenF11Ctrl+Cmd+F
Zoom In/OutCtrl+=/−Cmd+=/−
Show ExplorerCtrl+Shift+ECmd+Shift+E
Show SearchCtrl+Shift+FCmd+Shift+F
Show Source ControlCtrl+Shift+GCmd+Shift+G

Splitting editors (Ctrl+\) lets you view two files side-by-side—perfect for comparing implementations or writing tests alongside production code.

typescript
// File 1: userController.ts (left split)
export class UserController {
  createUser(data: UserDTO) {
    return this.service.create(data);
  }
}

// File 2: userController.test.ts (right split)
describe('UserController', () => {
  it('should create user', () => {
    const result = controller.createUser({ name: 'Alice' });
    expect(result).toBeDefined();
  });
});
Debugging Shortcuts

Debug mode without these shortcuts means constant mouse clicking. Learn these five and you'll debug 3x faster.

ActionWindows/LinuxMac
Toggle BreakpointF9F9
Start/ContinueF5F5
Step OverF10F10
Step IntoF11F11
Step OutShift+F11Shift+F11
Stop DebuggingShift+F5Shift+F5
java
public int calculateSum(List<Integer> numbers) {
    int sum = 0; // Set breakpoint here with F9
    for (int num : numbers) {
        sum += num; // Press F10 to step over each iteration
    }
    return sum; // Press F5 to continue to here
}
Quick Cheat Sheet
NeedReach For
Open any file fastCtrl+P
Run any commandCtrl+Shift+P
Jump to line 247Ctrl+G then type 247
Rename variable everywhereF2
Multiple cursorsCtrl+D or Alt+Click
Comment/uncomment codeCtrl+/
Split screenCtrl+\
Open terminalCtrl+ `
Format documentShift+Alt+F
Delete entire lineCtrl+Shift+K
Common Mistakes
  • Memorizing everything at once: Start with 5-10 shortcuts you use most. Add one new shortcut per week instead of trying to learn 50 in a day.

  • Using the mouse out of habit: Your muscle memory wants the mouse. Force yourself to use shortcuts for one week—it'll feel slow at first, then magical.

  • Ignoring the Command Palette: If you can't remember a shortcut, Ctrl+Shift+P shows the keyboard binding next to every command. It's a built-in cheat sheet.

  • Not customizing keybindings: Your workflow is unique. Open Keyboard Shortcuts (Ctrl+K Ctrl+S) and remap anything that feels awkward.

  • Skipping multi-cursor editing: This feature alone saves hours per month. If you're still editing repetitive text one-by-one, you're working 10x harder than necessary.

  • Forgetting platform differences: Mac uses Cmd where Windows uses Ctrl. If a shortcut "doesn't work," you might be using the wrong modifier key.

💡 Think Like a Programmer: Your keyboard is your primary interface with the computer—mastering shortcuts isn't about showing off, it's about removing friction between your thoughts and the code. Every second saved on navigation is a second you can spend solving actual problems.

// was this useful?
Did this article answer your question?
// VS Code · published by Codekilla
// related articles

Keep Reading