There are 4 levels of settings in VS Code, which in ascending order of priority are: Default, User, Workspace, and Workspace Folder. You can see the latter 3 as tabs in the Settings UI if they are meaningfully distinct and they are each stored as JSON in different locations. This is because VS Code supports multi-root workspaces. The files in the .vscode folder are for that workspace folder and have the highest priority. EDIT: The Settings documentation might help clear some things up. Answer from KamasamaK on reddit.com
🌐
Visual Studio Code
code.visualstudio.com › docs › configure › settings
User and workspace settings
November 3, 2021 - 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.
🌐
Visual Studio Code
code.visualstudio.com › docs › editing › workspaces › workspaces
What is a VS Code workspace?
November 3, 2021 - Workspace settings are stored in .vscode/settings.json when you open a folder as a workspace.
Discussions

Workspace file vs .vscode files - where do my project settings actually go?
There are 4 levels of settings in VS Code, which in ascending order of priority are: Default, User, Workspace, and Workspace Folder. You can see the latter 3 as tabs in the Settings UI if they are meaningfully distinct and they are each stored as JSON in different locations. This is because VS Code supports multi-root workspaces. The files in the .vscode folder are for that workspace folder and have the highest priority. EDIT: The Settings documentation might help clear some things up. More on reddit.com
🌐 r/vscode
6
14
July 28, 2018
What's the point of user settings?
Your user settings should be global to VS Code and the the workspace settings are only for that workspace. Are you saying that your user settings are not being applied globally? If you open your User Settings (JSON) via the command pallette - are you seeing your user settings there? More on reddit.com
🌐 r/vscode
7
0
August 17, 2023
[Feature] Local Workspace settings
I would like to be able to configure settings that are specific to my user and to a particular workspace. So, 'local' workspace settings? So there would be three locations for settings (for a singl... More on github.com
🌐 github.com
203
December 14, 2017
VS Code: What is the difference in settings between User and Workspace - Stack Overflow
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. More on stackoverflow.com
🌐 stackoverflow.com
December 17, 2021
🌐
Read the Docs
vscode-docs.readthedocs.io › en › stable › customization › userandworkspace
User and Workspace Settings - vscode-docs
VS Code provides two different scopes for settings: User these settings apply globally to any instance of VS Code you open Workspace these settings are stored inside your workspace in a .vscode folder and only apply when the workspace is opened.
🌐
Visual Studio Code
code.visualstudio.com › docs › editing › workspaces › multi-root-workspaces
Multi-root Workspaces
November 3, 2021 - User settings are supported as with single folder projects and you can also set global Workspace settings that will apply to all folders in your multi-root Workspace. Global Workspace settings will be stored in your .code-workspace file. { "folders": [ { "path": "vscode" }, { "path": "vscode-docs" }, { "path": "vscode-generator-code" } ], "settings": { "window.zoomLevel": 1, "files.autoSave": "afterDelay" } }
🌐
Reddit
reddit.com › r/vscode › workspace file vs .vscode files - where do my project settings actually go?
r/vscode on Reddit: Workspace file vs .vscode files - where do my project settings actually go?
July 28, 2018 -

Totally VSCode noob here... but in sublime, the project file is what holds all the project specific settings. In VSCode it looks like there are potentially 2 places for workspace settings: The workspace file, and settings.json (potentially others) inside the .vscode folder.

What actually goes where? On my work computer, I added some filename patterns to exclude from the side bar and vscode created a settings.json file inside a new .vscode folder. On my personal computer I tried the same thing and vscode just added those settings to my workspace file.

🌐
Atomic Spin
spin.atomicobject.com › vscode-workspace-settings
Why You Should Share VS Code Workspace Settings with Your Team
January 13, 2023 - Visual Studio Code allows distinct user and workspace settings while still adhering to the workspace settings of your team's project all within one project.
🌐
Posit
docs.posit.co › ide › server-pro › user › vs-code › guide › settings.html
VS Code Settings – Posit Workbench Documentation Release 2026.01.1
User settings: Apply to all your VS Code sessions. Workspace settings: Settings are stored inside a workspace (folder) and are only active when the Workspace is open.
Find elsewhere
🌐
Medium
chrisrbailey.medium.com › vs-code-personal-settings-for-a-project-not-affecting-the-projects-settings-aebc965bbcf8
VS Code Personal Settings for a Project (not affecting the project’s settings) | by Chris Bailey | Medium
November 11, 2024 - For example, if your project is in `~/Code/company/project`, you would create the file ~/Code/company/project.code-workspace (or any name of your choice, although I do believe the .code-workspace extension is required). Within this file, put the settings (the same format as the normal VS Code settings.json file).
🌐
Reddit
reddit.com › r/vscode › what's the point of user settings?
r/vscode on Reddit: What's the point of user settings?
August 17, 2023 -

Everytime I open a new workspace, its settings are set to some default values and I have to manually copy over my user settings to the workspace settings, every single time. I'd assumed that vscode would, initially, populate a new workspace's settings with my user settings that I carefully crafted, but no...

Do you know of a way to edit the default values used to initialize new workspaces with? Or perhaps a way to automate copying over the user settings file for newly created workspaces? Many thx!

🌐
Codeguage
codeguage.com › blog › vscode-workspace
Workspaces in VS Code and How to Set Up and ...
October 31, 2024 - These are opportunities for you to learn and grow · Explore programming and web development guides, how-to's, tips and tricks, and much more
🌐
Read the Docs
vscode-docs1.readthedocs.io › en › latest › getstarted › settings
User and Workspace Settings - vscode-docs1 - Read the Docs
The menu command File > Preferences > Settings (Code > Preferences > Settings on Mac) provides entry to configure user and workspace settings. You are provided with a list of Default Settings. Copy any setting that you want to change to the appropriate settings.json file.
🌐
Kodezi
blog.kodezi.com › how-to-configure-vs-code-workspace-settings-a-step-by-step-guide
How to Configure VS Code Workspace Settings: A Step-by-Step Guide
August 13, 2025 - Switch to VS Code workspace settings: Navigate to the top right corner of the preferences panel and switch from 'User' to 'Workspace' options for project-specific configurations. Modify settings: Leverage the search bar to find specific settings ...
🌐
GitHub
github.com › microsoft › vscode › issues › 40233
[Feature] Local Workspace settings · Issue #40233 · microsoft/vscode
December 14, 2017 - So there would be three locations for settings (for a single-folder workspace): ... This way, I can add .vscode/settings.json to git, and share project settings such as "exclude node_modules" but I can gitignore .vscode/settings.local.json and add things specific to that project that I don't want to share, such as git autofetch.
Author   firelizzard18
🌐
Rip Tutorial
riptutorial.com › user and workspace settings
Visual Studio Code - User and Workspace Settings | visual-studio-code Tutorial
September 17, 2020 - Workspace settings override user settings, and these settings are specific to a project and can be shared across developers on a project.
🌐
Fmind
mlops-coding-course.fmind.dev › 3. Productionizing › 3.6. VS Code Workspace.html
3.6. VS Code Workspace - MLOps Coding Course
Workspace Settings: These are defined in your .code-workspace file and apply to all folders within that workspace. They override User Settings. Folder Settings (Local): These are stored in a .vscode/settings.json file within a specific folder. They are useful for folder-specific tweaks within ...
🌐
Real Python
realpython.com › lessons › settings-and-workspaces-vs-code
Settings and Workspaces in VS Code (Video) – Real Python
You’ll learn: ... 00:00 VS Code can be configured in what seems like a million different ways. To change a setting, choose the Manage icon, and then select Settings. This will open a new tab and you’ll see a list of commonly used settings ...
Published   October 30, 2025
Top answer
1 of 12
590

What is a workspace?

A project that consists of one or more root folders, along with all of the Visual Studio Code configurations that belong to that project. These configurations include:

  • settings that should be applied when that project is open
  • recommended extensions for the project (useful when sharing the configuration files with colleagues)
  • project-specific debugging configurations

Why is a workspace so confusing?

Visual Studio Code does not use the term consistently across the UI (I've opened a GitHub issue to address this). Sometimes it refers to a workspace as described above, and other times it refers to a workspace as a project that is specifically associated with a .code-workspace file.

A good example being the recent files widget. Notice in the linked screenshot that all projects are grouped under the same "workspaces" heading, which would indicate that everything there is a workspace. But then projects with a .code-workspace file are given a "Workspace" suffix, contradicting the heading and indicating that only those files are actually workspaces.

What is a .code-workspace file?

It is a JSON file with comments that stores all of the configuration data mentioned above, in addition to the location of all root folders belonging to a workspace.

Do I need a .code-workspace file?

Only if you're creating a multi-root workspace, in which case you'll have a single .code-workspace file that automatically restores all of the workspace settings, in addition to all of the root folders that you want to be displayed in the Explorer.

What about single folder projects?

Everything is automated.

When you open a folder in Visual Studio Code and start making modifications to the editor that are specifically related to the project you're currently working on, Visual Studio Code automatically creates a .vscode folder and stores it in the root of the project folder that you're working on. This .vscode folder has files that store the changes you made.

For example, if you change Visual Studio Code settings that you want to apply only to your current project, Visual Studio Code creates a settings.json file with those updates, and that file is stored in the .vscode folder.

You can create a .code-workspace file that includes just a single root folder if you really want to. You'd then be able to either open the project folder directly, or open the workspace file. But I can't think of any reason why this would be beneficial.

How do I create a .code-workspace file?

Go to menu FileSave Workspace As...

How do I add root folders to a workspace?

Go to menu FileAdd Folder to Workspace....

How do I open a workspace that is defined by a .code-workspace file?

Go to menu FileOpen Workspace....

Alternatively, double click the .code-workspace file. Visual Studio Code won't open the actual file. Instead, it will read that file and open the folders that belong to that workspace.

How do I view the actual .code-workspace file?

Go to menu FileOpen... and select the target .code-workspace file.

Alternatively, open the workspace associated with that file. Then open the command palette, search for, and select the Workspaces: Open Workspace Configuration File command.

2 of 12
164

You can save settings at the workspace level and you can open multiple folders in a workspace. If you want to do either of those things, use a workspace, otherwise, just open a folder.

A Visual Studio Code workspace is a list of a project's folders and files. A workspace can contain multiple folders. You can customize the settings and preferences of a workspace.

🌐
Visual Studio Code
code.visualstudio.com › docs › editor › workspace-trust
Workspace Trust
March 22, 2023 - Workspace settings are stored in the .vscode folder at the root of your workspace, and are therefore shared by anyone who clones the workspace repository. Some settings contain paths to executables (for example, linter binaries), which if set to point to malicious code, could cause damage.
🌐
Dynamics Community
community.dynamics.com › blogs › post
User and Workspace Settings in Visual Studio Code
July 4, 2018 - 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.