VSCode Shortcut Commands for Windows and macOS

 

VSCode Shortcut Commands for Windows and macOS

Visual Studio Code (VSCode) is a popular code editor developed by Microsoft. It provides a wide range of features and extensions to enhance your coding experience. One of the key aspects that can significantly boost productivity in VSCode is mastering its keyboard shortcuts. Here’s a comprehensive guide to the most useful VSCode shortcuts for both Windows and macOS users.


Basic Navigation

ActionWindows ShortcutsmacOS Shortcuts
Open Command PaletteCtrl + Shift + PCmd + Shift + P
Open FileCtrl + PCmd + P
Close EditorCtrl + WCmd + W
Close All EditorsCtrl + K, Ctrl + WCmd + K, Cmd + W
Switch to Next EditorCtrl + 1, 2, 3, 4...Cmd + 1, 2, 3, 4...
Go to DefinitionF12F12
Go to LineCtrl + GCmd + G
Go BackAlt + Left ArrowCtrl + -
Go ForwardAlt + Right ArrowCtrl + Shift + -

Editing

ActionWindows ShortcutsmacOS Shortcuts
Copy LineCtrl + CCmd + C
Paste LineCtrl + VCmd + V
Cut LineCtrl + XCmd + X
UndoCtrl + ZCmd + Z
RedoCtrl + YCmd + Shift + Z
Duplicate LineAlt + Shift + Down ArrowOption + Shift + Down Arrow
Move Line Up/DownAlt + Up/Down ArrowOption + Up/Down Arrow
Comment/Uncomment LineCtrl + /Cmd + /

Search and Replace

ActionWindows ShortcutsmacOS Shortcuts
FindCtrl + FCmd + F
Find NextF3Cmd + G
Find PreviousShift + F3Cmd + Shift + G
ReplaceCtrl + HCmd + Option + F
Toggle Search/Replace PanelCtrl + Shift + FCmd + Shift + F

Code Management

ActionWindows ShortcutsmacOS Shortcuts
Format DocumentShift + Alt + FShift + Option + F
Show Problems PanelCtrl + Shift + MCmd + Shift + M
Open Integrated TerminalCtrl + `Cmd + `
Run TaskCtrl + Shift + BCmd + Shift + B
Toggle SidebarCtrl + BCmd + B

Debugging

ActionWindows ShortcutsmacOS Shortcuts
Start/Continue DebuggingF5F5
Step OverF10F10
Step IntoF11F11
Step OutShift + F11Shift + F11
Toggle BreakpointF9F9

Extensions and Miscellaneous

ActionWindows ShortcutsmacOS Shortcuts
Open Extensions ViewCtrl + Shift + XCmd + Shift + X
Open SettingsCtrl + ,Cmd + ,
Open Keyboard ShortcutsCtrl + K, Ctrl + SCmd + K, Cmd + S

Mastering these shortcuts can greatly enhance your efficiency and workflow in VSCode. Whether you're debugging, writing code, or managing files, these commands help streamline your coding experience.

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation