📑 Customizing Visual Studio Code
Auto Save | Format Code | Auto-Update | Extensions | Color Theme | User Snippets | Emmet
Auto Save Files
- In the VS Code menu bar, click
File ► Preferences ► Settings
You can always get into the
Settings
panel by pressing the shortcut⌘+,
[Mac] orCtrl+,
[Windows/Linux]. - Type
auto save
in the search box. - In the
Files: Auto Save
panel, change the dropdown menu fromoff
toafterDelay
.Option: You can set the delay to your preferred time in milliseconds in the
Files: Auto Save Delay
setting.
Format Code on Save
- Go to
Settings
panel by pressing the shortcut⌘ + ,
[Mac] orCtrl + ,
[Windows/Linux]. - Type
format
in the search box. - Check the box for ☑️
Editor: Format on Save
.
Auto-Updating Tags
When modifying a tag, the linked editing feature automatically updates the matching closing tag.
Managing Extensions
- In the VS Code menu bar, click
View ► Extensions
or just open the extensions panel by pressing the the shortcut⌘+Shift+X
[Mac] orCtrl+Shift+X
[Windows/Linux]. - Search for the extension you want to install.
- Click the
Install
button. - Finished. You can close the Extensions tab.
Documentation: 📑VS Code Extensions
Code Color Theme Selection
- In the VS Code menu bar, click
File ► Preferences ► Theme ► Color Theme
. - Select your preferred color theme from the list provided.
Additional color themes can be found through VS Code Extensions. Example, Winter is Coming
User Snippets
Code snippets are templates that make it easier to enter repeating code or markup.
Demonstration: 🎦User
Snippets
Emmet - Code Shorthand
Support for Emmet snippets and expansion is built right into Visual Studio Code, no extension required.