This article will record how to configure settings in VSCode.
In VSCode, the settings can be divided into two levels, which are:
- User Settings: Global settings for all the workspace.
- Workspace Settings: Settings for current workspace only.
The workspace has higher priority, which will be applied when conflicting with the user settings.
Part 1. Configure settings in UI
Method 1. Use menu to open the settings in UI
Click the File->Preferences->Settings on the menu to open settings in UI.
Method 2. Use command to open the settings in UI
Press Ctrl + Shift + P, and then search “Preferences: Open Settings (UI)” option to open settings in UI.
In the settings UI, you can edit both user settings and workspace settings by your requirement.
Part 2. Configure settings in JSON file
Modify user settings in JSON file
Press Ctrl + Shift + P, and then search “Preferences: Open Settings (JSON)” option to open user settings in JSON.
Modify workspace settings in JSON file
Press Ctrl + Shift + P, and then search “Preferences: Open Workspace Settings (JSON)” option to open workspace settings in JSON (placed in the folder “.vscode” in the workspace).
Above are the methods to configure user or workspace settings in VSCode.