VS Code settings
VS Code (Visual Studio Code) is a feature-rich code editor whose settings allow users to customize the behavior and appearance of the editor to suit their personal work habits and preferences.
Two ways to configure VS Code:
- Use the Settings Editor to modify settings.
- Directly edit the settings.json file.
Use keyboard shortcuts to open the settings page:
- macOS shortcut: ⌘ + ,
- Windows/Linux shortcut: Ctrl + ,
You can also open the settings page by selecting Code > Preferences > Settings from the menu:

The settings page is shown below:

** Page layout:**
- **Top of the settings page:** The search box at the top of the page can quickly filter settings; enter a keyword to view related configuration items.
- **Left navigation bar:** Displays different setting options by category, such as Common Settings, Text Editor, Workbench, Window, etc., making it easy to quickly locate the items you want to modify.
- **Right-side setting details:** Shows specific settings and their corresponding values, each usually accompanied by a brief description.
Commonly used settings include:
- **Font Size:** Sets the font size of the editor.
- **Font Family:** Specifies the editor font, such as Menlo, Monaco, etc.
- **Tab Size:** Controls the number of spaces in one tab, with a default of 4.
- **Auto Save:** Determines whether files are saved automatically and the trigger conditions for saving.
Enable Auto Save
By default, VS Code does not automatically save modified files.
In the Settings Editor, select a value from the Auto Save dropdown to change this behavior.

After the change, VS Code will automatically apply the setting change.
If Auto Save is enabled, files in the workspace will be saved automatically when you modify them.
Restore default settings
To restore a setting to its default value, move the mouse next to the setting item to reveal a gear icon, click it, and then select Reset Setting:

To quickly find all modified settings, you can type @modified in the search box:

Switch between user settings and workspace settings
- User settings: Apply to all workspaces.
- Workspace settings: Apply only to the current workspace and override user settings.
