@vivekcsein-logo
  • Home
  • About
  • Development

    • Web Development
    • Performance & Optimization
    • Backend & APIs
    • Authentication & Security

    Specialized

    • SEO & Ad Monetization
    • AR Experiences
    • Animation
    • Figma to Code
  • Articles
  • Projects
  • Marketplace
  • Contact
@vivekcsein-logo

A portfolio full stack developer with a passion for building scalable and high-performance web applications.

Explore

  • Home
  • About

Services

  • Web Development
  • Backend & APIs
  • Performance Optimization
  • Security & Authentication

Connect

  • Contact
  • Privacy
  • Terms
  • Home
  • About
  • Web Development
  • Backend & APIs
  • Performance Optimization
  • Security & Authentication
  • Contact
  • Privacy
  • Terms

© @vivekcsein. All rights reserved.

  • Home
  • All Articles47
  • Featured
  • Recently Added
  • Most Read
  • Bookmarks
Topics
  • Interview3
  • 3d4
  • Ai Prompts2
  • Business3
  • Deployment1
  • Dev2
  • Frontend5
  • Getting Started2
    • How to add a new doc
    • VS Code Keyboard Shortcuts Guide
  • Security2
  • Seo2
  • Workflow10
  • Backend1
  • Deployment1
  • Security1
  • Javascript1
  • Client Advisory5
  • Engineering2
Collections
  • Docs
  • Tutorials
  • Resources
  • Articles
“A better developer every single day.”
— Vivek
  1. Docs
  2. Getting Started
  3. VS Code Keyboard Shortcuts Guide
Getting Started

VS Code Keyboard Shortcuts Guide

The highest-impact VS Code keyboard shortcuts to memorize first, covering navigation, editing, multi-cursor, search, formatting and debugging.

Updated Oct 2, 20226 min read
On this page

On this page

  • Quick Open File
  • Go to Line
  • Go to Symbol
  • Reveal Current File
  • Trigger Suggestions
  • Trigger Parameter Hints
  • Move Line
  • Duplicate Line
  • Delete Current Line
  • Cut Current Line
  • Toggle Comment
  • Select All Occurrences
  • Toggle Terminal
  • Focus Terminal
  • Add Cursor Above
  • Add Cursor Below
  • Insert Cursor with Mouse
  • Select Next Occurrence
  • Select All Occurrences
  • Find
  • Replace
  • Global Search
  • Global Replace
  • New File
  • Open File
  • Save
  • Save All
  • Close File
  • Reopen Closed Editor
  • Fold Region
  • Unfold Region
  • Fold All
  • Unfold All
  • Rename Symbol
  • Quick Fix
  • Format Document
  • Format Selection
  • Start Debugging
  • Stop Debugging
  • Toggle Breakpoint
  • Step Over
  • Step Into
  • Source Control
  • Toggle Sidebar
  • Command Palette
  • Open Settings
  • Keyboard Shortcuts

The highest-impact keyboard shortcuts every developer should memorize first.

Learning these shortcuts can easily save hours every week and significantly improve your coding speed.


⭐ Priority Shortcuts (Learn These First)

These are the shortcuts I use almost every day.

ShortcutActionWhy it's useful
Ctrl + SpaceTrigger SuggestionsReopen IntelliSense suggestions if they disappear.
Ctrl + PQuick Open / Search FileInstantly search and open any file in the workspace.
Ctrl + GGo to LineJump directly to a specific line number.
Alt + ↑ / ↓Move Line Up/DownRearrange code without copy-paste.
Shift + Alt + ↑ / ↓Copy Line Up/DownDuplicate the current line quickly.
Ctrl + Shift + KDelete Current LineRemove a line instantly without selecting it.
Ctrl + OGo to SymbolNavigate to functions, methods, classes, and variables in the current file.
Ctrl + Shift + SpaceTrigger Parameter HintsReopen function parameter hints.
Ctrl + K, RReveal in ExplorerLocate the current file in the Explorer.
Ctrl + Shift + LSelect All OccurrencesEdit every matching word at once (multi-cursor).
Ctrl + /Toggle Line CommentComment or uncomment selected lines.
Ctrl + XCut Current LineDeletes (cuts) the current line when nothing is selected.
Ctrl + JToggle TerminalShow or hide the integrated terminal.
Ctrl + `Focus TerminalOpen or focus the integrated terminal.

Navigation

Quick Open File#

text
Ctrl + P

Search and open any file instantly.

Perfect for:

  • Large projects
  • Jumping between files
  • Fuzzy searching filenames

Go to Line#

text
Ctrl + G

Jump directly to a specific line number.

Example

text
Ctrl + G

150

Moves directly to line 150.


Go to Symbol#

text
Ctrl + O

Shows all symbols in the current file.

Useful for:

  • Functions
  • Methods
  • Classes
  • Interfaces
  • Variables

Reveal Current File#

text
Ctrl + K, R

Highlights the current file in the Explorer.

Very useful when working in deeply nested folders.


IntelliSense

Trigger Suggestions#

text
Ctrl + Space

Reopens the IntelliSense popup if it disappears.

Useful for:

  • Autocomplete
  • Variables
  • Methods
  • Imports
  • Snippets

Trigger Parameter Hints#

text
Ctrl + Shift + Space

Shows function parameters again.

Example

ts
fetch(url, options);

Displays parameter information while typing.


Editing

Move Line#

text
Alt + ↑

Alt + ↓

Move the current line without cut and paste.


Duplicate Line#

text
Shift + Alt + ↑

Shift + Alt + ↓

Copies the current line above or below.

Great for:

  • JSX
  • HTML
  • JSON
  • Objects
  • Arrays

Delete Current Line#

text
Ctrl + Shift + K

Deletes the current line instantly.


Cut Current Line#

text
Ctrl + X

When no text is selected, this cuts the entire line.


Toggle Comment#

text
Ctrl + /

Comments or uncomments the selected lines.

Works in almost every programming language.


Select All Occurrences#

text
Ctrl + Shift + L

Selects every occurrence of the current selection.

Perfect for:

  • Renaming variables
  • Updating JSX props
  • Editing repeated text

Terminal

Toggle Terminal#

text
Ctrl + J

Show or hide the integrated terminal panel.


Focus Terminal#

text
Ctrl + `

Open or focus the integrated terminal.

Useful when switching frequently between coding and command-line tasks.


Multi-Cursor Editing

Add Cursor Above#

text
Ctrl + Alt + ↑

Add Cursor Below#

text
Ctrl + Alt + ↓

Insert Cursor with Mouse#

text
Alt + Click

Select Next Occurrence#

text
Ctrl + D

Selects the next matching word.


Select All Occurrences#

text
Ctrl + Shift + L

Select every matching occurrence in the file.


Search

Find#

text
Ctrl + F

Search within the current file.


Replace#

text
Ctrl + H

Replace text in the current file.


Global Search#

text
Ctrl + Shift + F

Search across the entire project.


Global Replace#

text
Ctrl + Shift + H

Replace text across the entire workspace.


File Management

New File#

text
Ctrl + N

Open File#

text
Ctrl + O

Save#

text
Ctrl + S

Save All#

text
Ctrl + K S

Close File#

text
Ctrl + W

Reopen Closed Editor#

text
Ctrl + Shift + T

Code Folding

Fold Region#

text
Ctrl + Shift + [

Collapse the current code block.


Unfold Region#

text
Ctrl + Shift + ]

Expand the current code block.


Fold All#

text
Ctrl + K Ctrl + 0

Collapse all code regions.


Unfold All#

text
Ctrl + K Ctrl + J

Expand all folded regions.


Refactoring

Rename Symbol#

text
F2

Safely rename variables, functions, classes, and files.


Quick Fix#

text
Ctrl + .

Displays available code actions and fixes.


Format Document#

text
Shift + Alt + F

Formats the entire file using the configured formatter (e.g., Prettier).


Format Selection#

text
Ctrl + K Ctrl + F

Formats only the selected code.


Debugging

Start Debugging#

text
F5

Stop Debugging#

text
Shift + F5

Toggle Breakpoint#

text
F9

Step Over#

text
F10

Step Into#

text
F11

Git

Source Control#

text
Ctrl + Shift + G

Open the Git Source Control panel.


Explorer

Toggle Sidebar#

text
Ctrl + B

Hide or show the Explorer sidebar.


Command Palette#

text
Ctrl + Shift + P

Access every VS Code command from one place.


Workspace

Open Settings#

text
Ctrl + ,

Keyboard Shortcuts#

text
Ctrl + K Ctrl + S

Open the keyboard shortcuts editor.


My Top 10 Most Used Shortcuts

  1. Ctrl + P → Quick Open
  2. Ctrl + Shift + P → Command Palette
  3. Ctrl + Space → IntelliSense
  4. Ctrl + D → Select Next Occurrence
  5. Ctrl + Shift + L → Select All Occurrences
  6. Alt + ↑ / ↓ → Move Line
  7. Shift + Alt + ↑ / ↓ → Duplicate Line
  8. Shift + Alt + F → Format Document
  9. F2 → Rename Symbol
  10. Ctrl + / → Toggle Comment

Pro Tip

Instead of reaching for the mouse:

  • Search files with Ctrl + P
  • Execute commands with Ctrl + Shift + P
  • Navigate code with Ctrl + O
  • Rename safely with F2
  • Use multi-cursor editing with Ctrl + D and Ctrl + Shift + L
  • Auto-format with Shift + Alt + F

Mastering these shortcuts alone can make you 2–3× faster in Visual Studio Code.

PreviousHow to add a new doc

Keep reading

  • Getting Started

    How to add a new doc

    Add a new guide in under a minute — create a markdown file, and it is published, searchable and listed automatically.

    2 min read·Sep 21, 2026
  • Workflow

    Stage 2 — Professional Development Environment

    Set up Biome, Husky, lint-staged and Conventional Commits so formatting, linting and import order are enforced automatically on every commit.

    3 min read·Oct 2, 2026
  • Dev

    A Friendly Guide to Conventional Commits

    A developer-friendly guide explaining Git commit prefixes (feat, fix, chore, style, etc.) with real-world examples and a cheat sheet for better codebase history.

    4 min read·Oct 13, 2026

On this page

  • Quick Open File
  • Go to Line
  • Go to Symbol
  • Reveal Current File
  • Trigger Suggestions
  • Trigger Parameter Hints
  • Move Line
  • Duplicate Line
  • Delete Current Line
  • Cut Current Line
  • Toggle Comment
  • Select All Occurrences
  • Toggle Terminal
  • Focus Terminal
  • Add Cursor Above
  • Add Cursor Below
  • Insert Cursor with Mouse
  • Select Next Occurrence
  • Select All Occurrences
  • Find
  • Replace
  • Global Search
  • Global Replace
  • New File
  • Open File
  • Save
  • Save All
  • Close File
  • Reopen Closed Editor
  • Fold Region
  • Unfold Region
  • Fold All
  • Unfold All
  • Rename Symbol
  • Quick Fix
  • Format Document
  • Format Selection
  • Start Debugging
  • Stop Debugging
  • Toggle Breakpoint
  • Step Over
  • Step Into
  • Source Control
  • Toggle Sidebar
  • Command Palette
  • Open Settings
  • Keyboard Shortcuts