Here’s a list of useful (Mac-based) VS Code tips for my reference and yours.
Use the Command Palette
Then type your search term, for example “settings”.
My preferences (in
settings.json or via Preferences→Settings):
Note: the Emmet ones are really useful for code autocompletion.
Additional Emmet Settings
To add a keyboard shortcut for adding an arbitrary wrapper element (say,
div.wrap) around some selected code:
Open the Command Palette then search “emmet wrap”. When you see the option “Emmet: wrap with abbreviation”, click the settings icon beside it. Enter your preferred keyboard shortcut. I currently use:
Open current terminal directory in VS Code
Toggle sidebar visibility
Edit multiple rows simultaneously
Select one instance of the text that appears in multiple locations. Use Command-D to select all, then edit.
Open file to side (for side-by-side editing)
Option–click on a file in the Explorer.