Common Visual Studio Shortcuts

ActionWindows / LinuxMacNotes
Format SelectionCtrl + K, Ctrl + FCmd + K, Cmd + F
Format Whole DocumentShift + Alt + FShift + Option + FVery useful. Life or Death
Search and replace in all filesCtrl + Shift + HCmd + Shift + HUseful, but make sure to backup project before using.
FindCtrl + FCmd + F
Find & ReplaceCtrl + HCmd + Option + F
Move forward/backward a wordCtrl + Right / LeftCmd + Right / LeftVery useful.
Select current word or expand selection Ctrl + WShift + Option + RightVery useful.
Default keybinding was Shift + Alt + Right
Select whole lineCtrl + LCmd + LUseful
Comment/ Uncomment LineCtrl + /Cmd + /Useful
Rename SymbolF2F2
Select All OccurencesCtrl + Shift + LCmd + Shift + L
Split EditorCtrl + \Cmd + \
Go to LineCtrl + GCmd + G
Delete LineCtrl + Shift + KCmd + Shift + KUseful
Duplicate LineShift + Alt + DownShift + Option + DownVery useful
Move Line Up/DownAlt + Up / DownOption + Up / Down
Toggle Terminal/ ConsoleCtrl + ` (backtick)Cmd + ` (backtick)Very useful.
Right clicking a file/folder will also give the option to open the terminal at that location
Toggle SidebarCtrl + BCmd + B

Using Lorem Ipsum

You can use lorem followed by a number in Visual Studio Code to generate placeholder text quickly inside an HTML document.

<p>lorem20</p>

This expands to generate 20 filler words:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>

Extensions

General

Ansible / YAML

Javascript / Typescript

Java


GitHub Copilot

AI assistant integrating with VS Code (github.copilot), Visual Studio, XCode, JetBrains, and Neovim through extensions.