Skip to content

Instantly share code, notes, and snippets.

@pizofreude
Forked from NikitaPokryshko/vs_code_hotkeys.md
Last active August 14, 2025 01:20
Show Gist options
  • Select an option

  • Save pizofreude/f9f18e5327f325cd23c8a989e11f105d to your computer and use it in GitHub Desktop.

Select an option

Save pizofreude/f9f18e5327f325cd23c8a989e11f105d to your computer and use it in GitHub Desktop.

Revisions

  1. pizofreude revised this gist Apr 22, 2025. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions vs_code_hotkeys.md
    Original file line number Diff line number Diff line change
    @@ -290,3 +290,11 @@ Go to Entity (Functions, vars, etc)
    Cmd+Shift+O
    Ctrl+Shift+O
    ```

    Edit Multiple Variables at Once

    ```bash
    Cmd+Shift+L
    Ctrl+Shift+L
    ```

  2. @NikitaPokryshko NikitaPokryshko created this gist Feb 6, 2020.
    292 changes: 292 additions & 0 deletions vs_code_hotkeys.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,292 @@
    # VSCode Shortcuts

    > List of helpful shortcuts for faster coding
    If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

    ## Official List of all commands

    * [Windows](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf)
    * [Mac](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf)

    ## Open/View

    Open Command Pallete

    ```bash
    Shift+Cmd+P
    Shift+Ctrl+P
    ```

    Access Settings

    ```bash
    Cmd+,
    Ctrl+,
    ```

    Toggle Terminal

    ```bash
    Ctrl+`
    Ctrl+`
    ```

    Create New Terminal
    ```
    Shift+Ctrl+`
    Shift+Ctrl+`
    ```

    Toggle Sidebar

    ```bash
    Cmd+B
    Ctrl+B
    ```

    Open New Window/Instance

    ```bash
    Shift+Cmd+N
    Shift+Ctrl+N
    ```

    Close Window

    ```bash
    Cmd+W
    Ctrl+W
    ```

    ## Working With Files

    Sidebar Focus

    ```bash
    Shift+Cmd+E
    Shift+Ctrl+E
    ```

    Open File/Folder From Sidebar
    ```
    Cmd+Down
    Ctrl+Down
    ```

    Change File Tabs

    ```bash
    Ctrl+Tab
    Ctrl+PageUP
    ```

    Quick File Open

    ```bash
    Cmd+P
    Ctrl+P
    ```

    Open File From Explorer

    ```bash
    Cmd+O
    Ctrl+O
    ```

    New File

    ```bash
    Cmd+N
    Ctrl+N
    ```

    Save

    ```bash
    Cmd+S
    Ctrl+S
    ```

    Save As

    ```bash
    Shift+Cmd+S
    Shift+Ctrl+S
    ```

    Close File

    ```bash
    Cmd+W
    Ctrl+W
    ```

    Delete File
    ```
    Cmd+Delete
    Ctrl+Delete
    ```

    Reopen Files
    ```
    Shift+Cmd+T
    Shift+Ctrl+T
    ```

    Zoom

    ```bash
    Cmd++ # Zoom in
    Cmd+- # Zoom out

    Ctrl++ # Zoom in
    Ctrl+- # Zoom out
    ```

    Spilt Editor

    ```bash
    Cmd+\
    Ctrl+\
    ```

    ## Code Editing

    Go To Start & End Of Line

    ```bash
    Cmd+Right
    Cmd+Left

    Ctrl+Right
    Ctrl+Left

    home
    end
    ```

    Move By Word

    ```bash
    Option+Right
    Option+Left

    Alt+Right
    Alt+Left
    ```

    Go To Start & End Of File

    ```bash
    Cmd+Up
    Cmd+Down

    Ctrl+Home
    Ctrl+End
    ```

    Cut, Copy & Past Line

    ```bash
    Cmd+X #Cut
    Cmd+C #Copy
    Cmd+V #Paste

    Ctrl+X # Cut
    Ctrl+C # Copy
    Ctrl+V # Paste
    ```

    Move Line Up & Down

    ```bash
    Option+Up
    Option+Down

    Alt+Up
    Alt+Down
    ```

    Copy Line Up & Down

    ```bash
    Shift+Option+Up
    Shift+Option+Down

    Shift+Alt+Up
    Shift+Alt+Down
    ```

    Remove Line

    ```bash
    ShiftCmd+K
    Shift+Ctrl+K
    ```

    Insert Line

    ```bash
    Cmd+Enter # Insert below
    Shift+Cmd+Enter # Insert above

    Ctrl+Enter # Insert below
    Shift+Ctrl+Enter # Insert above
    ```

    Jump To Matching Bracket

    ```bash
    Shift+Cmd+\
    Shift+Ctrl+\
    ```

    Add Line Comment

    ```bash
    Cmd+/
    Ctrl+/
    ```

    Add Block Comment

    ```bash
    Shift+Option+A
    Shift+Alt+A
    ```

    Highlight Code

    ```bash
    Shift+Any Direction
    ```

    Select Next Match

    ```bash
    Cmd+D
    Ctrl+D
    ```

    De-select Match

    ```bash
    Cmd+U
    Ctrl+U
    ```

    Add Cursor

    ```bash
    Option+Click
    Alt+Click
    ```

    Go to Entity (Functions, vars, etc)

    ```bash
    Cmd+Shift+O
    Ctrl+Shift+O
    ```