USA

Here’s a breakdown of common commands in Visual Studio Code (VS Code), categorized for better understanding:

General Commands

  1. Command Palette (Ctrl+Shift+P or F1)
    Access all available commands in VS Code.
  2. Quick Open (Ctrl+P)
    Open files by typing their name.
  3. Settings (Ctrl+,)
    Open the settings editor.
  4. Toggle Sidebar (Ctrl+B)
    Show or hide the sidebar.
  5. Zen Mode (Ctrl+K Z)
    Enter distraction-free fullscreen mode.

File Management

  1. New File (Ctrl+N)
    Create a new file.
  2. Open File (Ctrl+O)
    Open an existing file.
  3. Save File (Ctrl+S)
    Save the current file.
  4. Save All (Ctrl+K S)
    Save all open files.
  5. Close File (Ctrl+W)
    Close the current file.
  6. Reopen Closed File (Ctrl+Shift+T)
    Reopen a previously closed file.

Navigation

  1. Go to Line/Column (Ctrl+G)
    Jump to a specific line or column in a file.
  2. Go to Symbol (Ctrl+Shift+O)
    Navigate to a symbol in the file.
  3. Go to Definition (F12)
    Jump to the definition of a symbol.
  4. Peek Definition (Alt+F12)
    View a symbol’s definition inline.
  5. Switch Editor Group (Ctrl+1/2/3)
    Focus on a specific editor group.

Editing

  1. Multi-Cursor (Alt+Click or Ctrl+Alt+Arrow Up/Down)
    Add multiple cursors for simultaneous editing.
  2. Duplicate Line (Shift+Alt+Down)
    Duplicate the current line.
  3. Move Line (Alt+Arrow Up/Down)
    Move the current line up or down.
  4. Auto-Format (Shift+Alt+F)
    Format code in the active file.
  5. Comment Line (Ctrl+/)
    Toggle a single-line comment.

Search

  1. Find (Ctrl+F)
    Search for text in the current file.
  2. Find and Replace (Ctrl+H)
    Search and replace text in the current file.
  3. Search in Files (Ctrl+Shift+F)
    Search across all files in the workspace.

Version Control

  1. Open Source Control (Ctrl+Shift+G)
    Open the Git source control panel.
  2. Commit (Ctrl+Enter)
    Commit changes in the source control view.
  3. View File History (Right-Click → File History)
    See version history of a file.

Debugging

  1. Start Debugging (F5)
    Begin a debug session.
  2. Step Over (F10)
    Move to the next statement without entering functions.
  3. Step Into (F11)
    Move into a function.
  4. Toggle Breakpoint (F9)
    Set or remove a breakpoint on a line.

Terminal

  1. Open Terminal (Ctrl+)
    Open the integrated terminal.
  2. Switch Terminal (Ctrl+)
    Switch between terminal instances.
  3. Kill Terminal (Ctrl+Shift+W)
    Close the active terminal.

Extensions

  1. Extensions View (Ctrl+Shift+X)
    Browse and manage extensions.
  2. Install Extensions (Search in Extensions View)
    Find and install VS Code extensions.
  3. Disable/Enable Extensions (Right-Click Extension)
    Toggle extensions as needed.

These are just a few of the essential commands. The Command Palette (Ctrl+Shift+P) is your best friend to explore more!

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Page dynamically generated on

Brooks Computing Systems, LLC
Quality, Reliability & Service