VS Code:用户和工作区之间的设置有何不同

VS Code: What is the difference in settings between User and Workspace

我想知道在 UserWorkspace 选项卡中更改 Visual Studio Code 设置有什么区别。

来自vscode settings

VS Code provides two different scopes for settings:

  • User Settings - Settings that apply globally to any instance of VS Code you open.

  • Workspace Settings - Settings stored inside your workspace and only apply when the workspace is opened.

Workspace settings override user settings. Workspace settings are specific to a project and can be shared across developers on a project.

Note: A VS Code "workspace" is usually just your project root folder. Workspace settings as well as debugging and task configurations are stored at the root in a .vscode folder. You can also have more than one root folder in a VS Code workspace through a feature called Multi-root workspaces. You can learn more in the What is a VS Code "workspace"? article.