User settings and workspace settings
VS Code provides two ways:
- User Settings : setting this way, the user will be applied to all projects open;
- workspace settings : work space is a file using the VS Code to open the folder, create a folder named in the .vscode hidden folder, which contains the settings apply only to the current directory of VS Code, the workspace settings override user settings.
Everyone has their own preferences when using the VS Code to develop, will be the user-level configuration of the VS Code according to their own habits.
But when many people together to complete a project, the project will have a certain coding standards, such as: setting when editing a language, code indentation, etc., this time on the need for a separate workspace for the project level settings.
Change the default settings and user workspace settings
VS Code settings file setting.json
. Files user settings are saved in the following directory:
- Windows %APPDATA%\Code\User\settings.json
- Linux $HOME/.config/Code/User/settings.json
Document workspace settings saved in the current directory .vscode
folder.
Two ways to modify the default settings
- Use your editor to open the setting.json
file set;
- click on the file VS Code of> Preferences> settings, you can open the Settings panel to set;