Skip to content

Instantly share code, notes, and snippets.

@djaldave
Forked from bradtraversy/vscode_shortcuts.md
Created January 26, 2020 19:52
Show Gist options
  • Save djaldave/048c490afd72e98ba40aedf93274aea8 to your computer and use it in GitHub Desktop.
Save djaldave/048c490afd72e98ba40aedf93274aea8 to your computer and use it in GitHub Desktop.

Revisions

  1. @bradtraversy bradtraversy revised this gist Nov 2, 2019. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -270,6 +270,13 @@ Cmd+D
    Ctrl+D
    ```

    De-select Match

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

    Add Cursor

    ```bash
  2. @bradtraversy bradtraversy revised this gist Nov 2, 2019. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@

    > 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)
    @@ -32,7 +34,7 @@ Ctrl+`

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

    @@ -168,11 +170,11 @@ end
    Move By Word

    ```bash
    Cmd+Right
    Cmd+Left
    Option+Right
    Option+Left

    Ctrl+Right
    Ctrl+Left
    Alt+Right
    Alt+Left
    ```

    Go To Start & End Of File
  3. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -127,6 +127,12 @@ Cmd+Delete
    Ctrl+Delete
    ```

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

    Zoom

    ```bash
  4. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 16 additions and 20 deletions.
    36 changes: 16 additions & 20 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -149,10 +149,26 @@ Ctrl+\
    Go To Start & End Of Line

    ```bash
    Cmd+Right
    Cmd+Left

    Ctrl+Right
    Ctrl+Left

    home
    end
    ```

    Move By Word

    ```bash
    Cmd+Right
    Cmd+Left

    Ctrl+Right
    Ctrl+Left
    ```

    Go To Start & End Of File

    ```bash
    @@ -233,26 +249,6 @@ Shift+Option+A
    Shift+Alt+A
    ```

    Scroll Up & Down

    ```bash
    Cmd+Up
    Cmd+Down

    Ctrl+Up
    Ctrl+Down
    ```

    Move By Word

    ```bash
    Cmd+Right
    Cmd+Left

    Ctrl+Right
    Ctrl+Left
    ```

    Highlight Code

    ```bash
  5. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -156,8 +156,8 @@ end
    Go To Start & End Of File

    ```bash
    Cmd+Home
    Cmd+End
    Cmd+Up
    Cmd+Down

    Ctrl+Home
    Ctrl+End
  6. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -72,6 +72,13 @@ Cmd+Down
    Ctrl+Down
    ```

    Change File Tabs

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

    Quick File Open

    ```bash
    @@ -114,13 +121,6 @@ Cmd+W
    Ctrl+W
    ```

    Change File Tabs

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

    Delete File
    ```
    Cmd+Delete
  7. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 29 additions and 21 deletions.
    50 changes: 29 additions & 21 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    * [Windows](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf)
    * [Mac](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf)

    ## General & File
    ## Open/View

    Open Command Pallete

    @@ -16,18 +16,11 @@ Shift+Cmd+P
    Shift+Ctrl+P
    ```

    Toggle Sidebar

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

    Toggle Sidebar Focus
    Access Settings

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

    Toggle Terminal
    @@ -43,6 +36,13 @@ Shift+Cmd+`
    Shift+Ctrl+`
    ```

    Toggle Sidebar

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

    Open New Window/Instance

    ```bash
    @@ -57,18 +57,33 @@ 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
    ```

    Quick File Open

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

    Access Settings
    Open File From Explorer

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

    New File
    @@ -78,13 +93,6 @@ Cmd+N
    Ctrl+N
    ```

    Open File

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

    Save

    ```bash
  8. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,6 @@

    > List of helpful shortcuts for faster coding
    - For mac, replace "Ctrl" with "cmd" and "Alt" with "option"

    ## Official List of all commands

    * [Windows](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf)
  9. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 72 additions and 47 deletions.
    119 changes: 72 additions & 47 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -14,106 +14,127 @@
    Open Command Pallete

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

    Toggle Sidebar

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

    Toggle Sidebar Focus

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

    Integrated Terminal
    Toggle Terminal

    ```bash
    Ctrl+` # Toggle terminal
    Ctrl+Shift+` # Create new terminal
    Ctrl+`
    Ctrl+`
    ```

    Open New Window
    Create New Terminal
    ```
    Shift+Cmd+`
    Shift+Ctrl+`
    ```

    Open New Window/Instance

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

    Close Window

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

    Quick File Open

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

    Access Settings

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

    New File

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

    Open File

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

    Save

    ```bash
    Cmd+S
    Ctrl+S
    Ctrl+Shift+S # Save As
    ```

    Close File
    Save As

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

    Change File Tabs
    Close File

    ```bash
    Ctrl+PageUP
    Ctrl+PageDown
    Cmd+W
    Ctrl+W
    ```

    Open Next File (Dropdown)
    Change File Tabs

    ```bash
    Ctrl+Tab # Scroll next
    Ctrl+Shift+Tab # Scroll prev
    Ctrl+Tab
    Ctrl+PageUP
    ```

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

    Zoom

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

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

    Spilt Editor

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

    @@ -129,13 +150,20 @@ end
    Go To Start & End Of File

    ```bash
    Cmd+Home
    Cmd+End

    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
    @@ -144,65 +172,77 @@ 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
    Ctrl+Shift+K
    ShiftCmd+K
    Shift+Ctrl+K
    ```

    Insert Line

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

    Jump To Matching Bracket
    Cmd+Enter # Insert below
    Shift+Cmd+Enter # Insert above

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

    Fold Brackets
    Jump To Matching Bracket

    ```bash
    Ctrl+[
    Ctrl+]
    Shift+Cmd+\
    Shift+Ctrl+\
    ```

    Add Line Comment

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

    Add Block Comment

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

    Scroll Up & Down

    ```bash
    Cmd+Up
    Cmd+Down

    Ctrl+Up
    Ctrl+Down
    ```

    Move By Word

    ```bash
    Cmd+Right
    Cmd+Left

    Ctrl+Right
    Ctrl+Left
    ```
    @@ -213,39 +253,24 @@ Highlight Code
    Shift+Any Direction
    ```

    Go To Next Match

    ```bash
    F3
    ```

    Select Next Match

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

    Select All Matches & Add Cursor

    ```bash
    Ctrl+F2
    ```

    Select All Matches from Find

    ```bash
    Alt+Enter
    ```

    Add Cursor

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

    Go to Symbol
    Go to Entity (Functions, vars, etc)

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

  10. @bradtraversy bradtraversy revised this gist Oct 31, 2019. 1 changed file with 24 additions and 19 deletions.
    43 changes: 24 additions & 19 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,25 @@ Open Command Pallete
    Ctrl+Shift+P
    ```

    Toggle Sidebar

    ```bash
    Ctrl+B
    ```

    Toggle Sidebar Focus

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

    Integrated Terminal

    ```bash
    Ctrl+` # Toggle terminal
    Ctrl+Shift+` # Create new terminal
    ```

    Open New Window

    ```bash
    @@ -80,23 +99,16 @@ Ctrl+Tab # Scroll next
    Ctrl+Shift+Tab # Scroll prev
    ```

    Zoom

    ```bash
    Ctrl++ # Zoom in
    Ctrl+- # Zoom out
    Delete File
    ```

    Toggle Sidebar

    ```bash
    Ctrl+B
    Ctrl + Delete
    ```

    Toggle Sidebar Focus
    Zoom

    ```bash
    Ctrl+Shift+E
    Ctrl++ # Zoom in
    Ctrl+- # Zoom out
    ```

    Spilt Editor
    @@ -105,13 +117,6 @@ Spilt Editor
    Ctrl+\
    ```

    Integrated Terminal

    ```bash
    Ctrl+` # Toggle terminal
    Ctrl+Shift+` # Create new terminal
    ```

    ## Code Editing

    Go To Start & End Of Line
  11. @bradtraversy bradtraversy revised this gist Feb 28, 2019. 1 changed file with 5 additions and 6 deletions.
    11 changes: 5 additions & 6 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,11 @@
    - For mac, replace "Ctrl" with "cmd" and "Alt" with "option"

    ## 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)

    ## General & File

    Open Command Pallete
    @@ -239,9 +244,3 @@ Go to Symbol
    Ctrl+Shift+O
    ```

    ## 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)

  12. @bradtraversy bradtraversy revised this gist Feb 28, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -241,7 +241,7 @@ Ctrl+Shift+O

    ## Official List of all commands

    ```bash
    https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
    https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
    ```

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

  13. @bradtraversy bradtraversy created this gist Feb 28, 2019.
    247 changes: 247 additions & 0 deletions vscode_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,247 @@
    # VSCode Shortcuts

    > List of helpful shortcuts for faster coding
    - For mac, replace "Ctrl" with "cmd" and "Alt" with "option"

    ## General & File

    Open Command Pallete

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

    Open New Window

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

    Close Window

    ```bash
    Ctrl+W
    ```

    Quick File Open

    ```bash
    Ctrl+P
    ```

    Access Settings

    ```bash
    Ctrl+,
    ```

    New File

    ```bash
    Ctrl+N
    ```

    Open File

    ```bash
    Ctrl+O
    ```

    Save

    ```bash
    Ctrl+S
    Ctrl+Shift+S # Save As
    ```

    Close File

    ```bash
    Ctrl+F4
    ```

    Change File Tabs

    ```bash
    Ctrl+PageUP
    Ctrl+PageDown
    ```

    Open Next File (Dropdown)

    ```bash
    Ctrl+Tab # Scroll next
    Ctrl+Shift+Tab # Scroll prev
    ```

    Zoom

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

    Toggle Sidebar

    ```bash
    Ctrl+B
    ```

    Toggle Sidebar Focus

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

    Spilt Editor

    ```bash
    Ctrl+\
    ```

    Integrated Terminal

    ```bash
    Ctrl+` # Toggle terminal
    Ctrl+Shift+` # Create new terminal
    ```

    ## Code Editing

    Go To Start & End Of Line

    ```bash
    home
    end
    ```

    Go To Start & End Of File

    ```bash
    Ctrl+Home
    Ctrl+End
    ```

    Cut, Copy & Past Line

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

    Move Line Up & Down

    ```bash
    Alt+Up
    Alt+Down
    ```

    Copy Line Up & Down

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

    Remove Line

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

    Insert Line

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

    Jump To Matching Bracket

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

    Fold Brackets

    ```bash
    Ctrl+[
    Ctrl+]
    ```

    Add Line Comment

    ```bash
    Ctrl+/
    ```

    Add Block Comment

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

    Scroll Up & Down

    ```bash
    Ctrl+Up
    Ctrl+Down
    ```

    Move By Word

    ```bash
    Ctrl+Right
    Ctrl+Left
    ```

    Highlight Code

    ```bash
    Shift+Any Direction
    ```

    Go To Next Match

    ```bash
    F3
    ```

    Select Next Match

    ```bash
    Ctrl+D
    ```

    Select All Matches & Add Cursor

    ```bash
    Ctrl+F2
    ```

    Select All Matches from Find

    ```bash
    Alt+Enter
    ```

    Add Cursor

    ```bash
    Alt+Click
    ```

    Go to Symbol

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

    ## Official List of all commands

    ```bash
    https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
    https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
    ```