Skip to content

Instantly share code, notes, and snippets.

@TechRancher
Created July 24, 2020 19:31
Show Gist options
  • Select an option

  • Save TechRancher/a4eaed54f5ac5115596e41610a8e3406 to your computer and use it in GitHub Desktop.

Select an option

Save TechRancher/a4eaed54f5ac5115596e41610a8e3406 to your computer and use it in GitHub Desktop.

Revisions

  1. TechRancher created this gist Jul 24, 2020.
    346 changes: 346 additions & 0 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,346 @@
    # 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)
    * [Linux](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf)


    ## Open/View

    Toggle full screen

    ```bash
    F11
    ```

    Open Command Pallete

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

    Access Settings

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

    Toggle Terminal

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

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

    Copy In Terminal

    ```bash
    Cmd+Shift+C
    Ctrl+Shift+C
    ```

    Paste Into Active Terminal

    ```bash
    Cmd+Shift+V
    Ctrl+Shift+V
    ```

    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
    ```bash
    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
    ```bash
    Cmd+Delete
    Ctrl+Delete
    ```

    Reopen Files
    ```bash
    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

    Find Character or Word

    ```bash
    Cmd+F
    Ctrl+F
    ```

    Replace Character or Word

    ```bash
    Cmd+H
    Ctrl+H
    ```

    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
    Ctrl+Shift+Enter # Insert above
    ```

    Jump To Matching Bracket

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

    Add Line Comment

    ```bash
    Cmd+/
    Ctrl+/
    Ctrl+K Ctrl+C
    ```

    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
    ```

    ## Markdown

    View Preview

    ```bash
    Cmd+Shift+V
    Ctrl+Shift+V
    ```

    View Preview To The Side

    ```bash
    Cmd+K V
    Ctrl+K V
    ```