Useful VSCode Keyboard Shortcuts for macOS
It is hard to remember a lot of keyboard shortcuts, but it is worth learning them even if it takes time. I will make a note of the shortcuts that I use frequently in Visual Studio Code. The shortcut list includes some of Mac Shortcuts, not only VSCode’s originals, but all of them are useful for coding.
Keyboard Shortcuts for VSCode (macOS)
Basic Editing
Copy Line (empty selection):
Cmd+CCut Line (empty selection):
Cmd+XDelete Line:
Shift+Cmd+KInsert Line Below/Above:
Cmd+Enter
Shift+Cmd+EnterMove Line Down/Up:
Opt+Down
Opt+UpCopy Line Down/Up:
Shift+Opt+Down
Shift+Opt+UpAdd Selection to Next Find Match:
Cmd+DAdd Cursors:
Opt+ClickJump to Matching Bracket:
Shift+Cmd+\Move Forward(Right)/Backward(Left)/Down/Up:
Ctrl+F
Ctrl+B
Ctrl+N
Ctrl+PDelete Character on Left/Right:
Ctrl+H
Ctrl+DGo to End/Beginning of Line:
Cmd+Right
Cmd+LeftMove by Word:
Opt+Right
Opt+LeftGo to End/Beginning of File:
Cmd+Down
Cmd+UpSelect to End/Beginning of Line:
Shift+Cmd+Right
Shift+Cmd+LeftExtend Selection Below/Above:
Shift+Down
Shift+UpI use these when moving, duplicating, and commenting out multiple lines.
Extend Selection by Word:
Shift+Opt+Right
Shift+Opt+LeftFold/Unfold All Methods:
Cmd+K+0
Cmd+K+JToggle Line Comment:
Cmd+/Editor/Window Management
Close Editor/Window:
Cmd+WFile Management
Save:
Cmd+SDelete File:
Cmd+DelDisplay
Open Command Palette:
Shift+Cmd+PZoom In/Out:
Shift+Cmd+-
Cmd+-Toggle Sidebar Visibility:
Cmd+BNew Terminal:
Ctrl+Shift+`You can also open a terminal with the following shortcut.
Show Panel:
Cmd+JPreferences
Open Settings:
Cmd+,That’s all! If there are any mistakes, please leave a comment below. I hope this note helps you :)

