As @Scott McPeak pointed out the defaults are not stored, however if you override any value the overrides are stored on a *nix system in:

~/.config/Code/User
Answer from Psionman on Stack Overflow
Top answer
1 of 4
5

As @Scott McPeak pointed out the defaults are not stored, however if you override any value the overrides are stored on a *nix system in:

~/.config/Code/User
2 of 4
5

All defaults in a read-only format

If you just want to see what all the defaults are, use the Command Palette (Ctrl+Shift+P) and run "Preferences: Open Default Settings (JSON)". VSCode will generate a JSON description of all of the defaults.

Where the defaults come from

The default settings are hardcoded in the vscode sources.

Details

Let's look at some examples. When I open Settings, I see a long list, and this is at the top:

The first entry is "Files: Auto Save". That is defined by this fragment of Typescript code in files.contribution.ts:

        'files.autoSave': {
            'type': 'string',
            'enum': [AutoSaveConfiguration.OFF, AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE],
            'markdownEnumDescriptions': [
                nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.off' }, "A dirty file is never automatically saved."),
                nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.afterDelay' }, "A dirty file is automatically saved after the configured `#files.autoSaveDelay#`."),
                nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.onFocusChange' }, "A dirty file is automatically saved when the editor loses focus."),
                nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'files.autoSave.onWindowChange' }, "A dirty file is automatically saved when the window loses focus.")
            ],
            'default': platform.isWeb ? AutoSaveConfiguration.AFTER_DELAY : AutoSaveConfiguration.OFF,
            'markdownDescription': nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'autoSave' }, "Controls auto save of dirty files. Read more about autosave here.", AutoSaveConfiguration.OFF, AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE, AutoSaveConfiguration.AFTER_DELAY)
        },

Notice the default value, which incidentally depends on the isWeb variable. Since I'm running VSCode on Windows (where isWeb is evidently false), I see a default value of "off" for this attribute.

The next attribute is "Files: Auto Save Delay". As it happens, the very next fragment in the same file contains it:

        'files.autoSaveDelay': {
            'type': 'number',
            'default': 1000,
            'markdownDescription': nls.localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'autoSaveDelay' }, "Controls the delay in ms after which a dirty file is saved automatically. Only applies when `#files.autoSave#` is set to `{0}`.", AutoSaveConfiguration.AFTER_DELAY)
        },

Again, the default value of 1000 in the GUI comes from the default attribute here.

The next attribute is "Editor: Font Size". It comes from commonEditorConfig.ts:

        'editor.fontSize': {
            'type': 'number',
            'default': EDITOR_FONT_DEFAULTS.fontSize,
            'description': nls.localize('fontSize', "Controls the font size in pixels.")
        },

Here, the default value is not a literal, so we have to track down the definition of EDITOR_FONT_DEFAULTS.fontSize. Here it is, in editorOptions.ts:

export const EDITOR_FONT_DEFAULTS = {
    fontFamily: (
        platform.isMacintosh ? DEFAULT_MAC_FONT_FAMILY : (platform.isLinux ? DEFAULT_LINUX_FONT_FAMILY : DEFAULT_WINDOWS_FONT_FAMILY)
    ),
    fontWeight: 'normal',
    fontSize: (
        platform.isMacintosh ? 12 : 14
    ),
    lineHeight: 0,
    letterSpacing: 0,
};

It is again interesting that the default depends on the platform. Since I'm not running on Mac, I see a default of 14.

And so on. Each of the default settings comes from Typescript source code or, in some cases, package.json files for extensions (either built-in or installed by the user).

🌐
Visual Studio Code
code.visualstudio.com › docs › configure › settings
User and workspace settings
November 3, 2021 - VS Code stores workspace settings at the root of the project in a .vscode folder. This makes it easy to share settings with others in a version-controlled (for example, Git) project. You can access the workspace settings in a few ways: Select the Preferences: Open Workspace Settings command in the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) Select the Workspace tab in the Settings editor (⌘, (Windows, Linux Ctrl+,)) Select the Preferences: Open Workspace Settings (JSON) command in the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P))
Discussions

Where is settings.json?
Ctrl+Shift+P then type "settings". https://www.screencast.com/t/eDq4yjOX More on reddit.com
🌐 r/vscode
4
1
February 27, 2022
How to open Visual Studio Code's 'settings.json' file - Stack Overflow
The Workspace settings will be ... be in a .vscode folder if and when it has been created. ... As stated by sevencardz below, VS Code includes a button in the Settings UI gutter which can be used to switch between JSON and graphical view. The workbench.settings.editor option selects which of the settings files is opened by default when not using ... More on stackoverflow.com
🌐 stackoverflow.com
visual studio code - Cannot Edit Default VSCode JSON Settings - Stack Overflow
For workspace settings JSON, the JSON file is located in a folder of the root directory called .vscode, you can create it yourself if it is not there. By default, VS Code shows the Settings editor, but you can still edit the underlying settings.json file by using the Open Settings (JSON) command ... More on stackoverflow.com
🌐 stackoverflow.com
VS Code settings.json File Corrupted. Can I Recover a Default settings.json? - General Web Dev - SitePoint Forums | Web Development & Design Community
First, thank you to all who responded to my post introducing myself. It was a kind and warm welcome. Thank you. The t-shirt I’m wearing today proclaims: “Pretty sure I seized the wrong day”. It is appropriate as I have shot myself in the foot repeatedly today. More on sitepoint.com
🌐 sitepoint.com
0
May 9, 2025
🌐
Visual Studio Code
code.visualstudio.com › docs › reference › default-settings
Default settings reference
November 3, 2021 - To view the list of default settings, run the Preferences: Open Default Settings (JSON) command from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).
🌐
Micro Focus
microfocus.com › documentation › vscode › enterprise › GUID-84045421-C70A-4583-BC59-45995A146745.html
Visual Studio Code - Settings File (JSON)
This opens the global settings.json in the editor. The location of the file is %userprofile%\AppData\Roaming\Code\User (Windows) or ~/.config/Code/User (Linux) for default installations.
🌐
Reddit
reddit.com › r/vscode › where is settings.json?
r/vscode on Reddit: Where is settings.json?
February 27, 2022 -

Hi , I am new to VS Code, doing a python course. The course require to use an extension and change the settings by going and editing the json file. But when I open the settings.json file it is empty. If I click any option in the settings ui, that option is showing in the .json file but default settings are not shown. How do i fix this?

🌐
GeeksforGeeks
geeksforgeeks.org › python › locating-and-modifying-vscode-settingsjson
Locating and Modifying VSCode settings.json - GeeksforGeeks
August 28, 2024 - Method 1: Open VSCode, go to File > Preferences > Settings. Then, click on the icon in the top right corner that looks like a document with an arrow. ... Once the file is located, the JSON content can be directly edited.
Top answer
1 of 14
701

To open the User settings:

  • Open the command palette (either with F1 or Ctrl+Shift+P)
  • Type ">open settings" (You must include the '>' at the beginning)
  • You are presented with a few options¹, choose Open User Settings (JSON)

This image was taken in the VS Code online editor

Which, from the manual and depending on platform, is one of:

  • Windows %APPDATA%\Code\User\settings.json²
  • macOS $HOME/Library/Application\ Support/Code/User/settings.json
  • Linux $HOME/.config/Code/User/settings.json

The Workspace settings will be in a {workspaceName}.code-workspace file where you saved it, and the Folder settings will be in a .vscode folder if and when it has been created.


Official page on User and Workspace Settings

As stated by sevencardz below, VS Code includes a button in the Settings UI gutter which can be used to switch between JSON and graphical view.

The workbench.settings.editor option selects which of the settings files is opened by default when not using the above method, such as with the shortcut +, or through the application menu.

Footnotes

  1. The aforementioned settings, User and Workspace. Remote settings will appear when using WSL.

  2. By a test this maps to %APPDATA%\Roaming\Code\User\settings.json, I am not sure by what logic.

2 of 14
185

On the settings UI page, there's a special button in the top right corner gutter that toggles between the settings.json file and the settings UI.

Bonus Answer:

Add "workbench.settings.editor": "json" to your settings.json file. This will make it so that menu FilePreferencesSettings or + , opens your settings.json file by default. Optionally, add a comment at the top to remind yourself where the toggle button is.

// Click the Open Settings (UI) button in the top
// right corner gutter to toggle the settings UI
{
    // Other settings in settings.json
    // ...
    "workbench.settings.editor": "json"
}
Find elsewhere
🌐
Medium
alinawrites.medium.com › how-to-find-settings-json-in-vscode-e6f678dbc01d
How to find settings.json In VSCode | by Alina Writes | Medium
October 6, 2022 - And the quickest way to open ... ... Press ⌘ + , (comma) on Mac. ... Next, on the User Settings screen, click on a small button that looks like a new file icon in upper right corner of the VSCode dashboard:...
🌐
GitHub
gist.github.com › tsinis › f9d4cef8da42ce2a7a21a10b7512222d
Visual Studio Code default settings · GitHub
default-settings.json · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ·
Top answer
1 of 4
57

The default settings in vscode is a non-editable document. It acts as a way for you to view the default settings for native settings as well as extension default settings.

These defaults are also used to identify when a setting has changed with a 'blue' line indicator, when using the settings editor:

Changes to settings are reloaded by VS Code as you change them. Modified settings are now indicated with a blue line similar to modified lines in the editor. The gear icon opens a context menu with options to reset the setting to its default value as well as copy setting as JSON.

Currently, vscode only offers 2 editable 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 configure these settings with the settings editor, as pictured above, or you can navigate to their JSON counterparts for manual entry (example pictured on the right below).

For workspace settings JSON, the JSON file is located in a folder of the root directory called .vscode, you can create it yourself if it is not there.

By default, VS Code shows the Settings editor, but you can still edit the underlying settings.json file by using the Open Settings (JSON) command from your command palette or by changing your default settings editor with the workbench.settings.editor setting.


Settings

You can define which view is shown using the following settings:

  • workbench.settings.openDefaultSettings

    Opens the default settings any time you open regular settings (this only works with the JSON settings editor option)

  • workbench.settings.editor

    Determine which editor to use, you can elect UI or JSON

  • workbench.settings.useSplitJSON

    This will open a JSON settings editor, with the default settings to the left, but the default editor to the left will behave like a UI editor in that you can collapse regions based on category and there is a search input box and it will share the same tab as the json editor on the right, whereas the workbench.settings.openDefaultSettings option mentioned above puts each setting view in its own respective tab (editor)

2 of 4
17

I had the same problem and the solution that worked is below. It is true that default settings cannot be modified, but the below steps explain how to edit the settings in JSON:

  1. Cmd+Shift+P and select Open Settings UI (Ctrl+Shift+P for Windows I think)
  2. Search for "Settings" and under "Workbench" click on Settings Editor. Change from "ui" to "json".
  3. Search for “use split JSON” and tick “Controls whether to use split JSON…”.

Credit to Ahmad Awais video posted here

🌐
Posit
docs.posit.co › ide › server-pro › user › vs-code › guide › settings.html
VS Code Settings – Posit Workbench Documentation Release 2026.01.1
Then, type and select: “Preferences: Open User Settings (JSON)” and press ENTER. ... Workspace settings are specified in .vscode/settings.json within the workspace folder.
🌐
Semicolon
semicolon.dev › vscode › how-to-open-settings-json
Fastest Way To Open settings.json In VSCode (Where is VS Code's settings file?)
To open settings.json file in VS Code, go to File menu, select Preferences, then select Settings. Or press Ctrl + , (comma). Then, click on a small button that looks like a new file icon in upper right corner of the VSCode dashboard.
🌐
Read the Docs
vscode-docs.readthedocs.io › en › stable › customization › userandworkspace
User and Workspace Settings - vscode-docs
The workspace settings file is located under the .vscode folder in your project. The settings.json file is divided into these sections: Editor Configuration - font, word wrapping, tab size, line numbers, indentation, ... Files Configuration - exclude filters, default encoding, trim trailing ...
🌐
Supunkavinda
supunkavinda.blog › home › vscode settings.json secrets: decoding potential
Vscode Settings.Json: Tips and Techniques - Supunkavinda
May 8, 2024 - Influencing all projects, the global settings.json resides in user preferences. Access it either through the Visual Studio Code interface or by navigating directly to the file path based on your operating system.
🌐
Bobby Hadz
bobbyhadz.com › blog › vscode-open-settings-json
How to open settings.json in VS Code [6 Ways] | bobbyhadz
The editor will open your local settings.json file which is located in the .vscode/settings.json directory.
🌐
Micro Focus
microfocus.com › documentation › vscode › cobol › GUID-84045421-C70A-4583-BC59-45995A146745.html
Settings File (JSON) - Micro Focus website
This opens the global settings.json in the editor. The location of the file is %userprofile%\AppData\Roaming\Code\User (Windows) or ~/.config/Code/User (Linux) for default installations.
🌐
SitePoint
sitepoint.com › general web dev
VS Code settings.json File Corrupted. Can I Recover a Default settings.json? - General Web Dev - SitePoint Forums | Web Development & Design Community
May 9, 2025 - First, thank you to all who responded to my post introducing myself. It was a kind and warm welcome. Thank you. The t-shirt I’m wearing today proclaims: “Pretty sure I seized the wrong day”. It is appropriate as I ha…
🌐
Ivan-lim
ivan-lim.com › home › understanding settings.json in visual studio code
Understanding settings.json in Visual Studio Code - Ivan Lim Web & Database Services
December 13, 2023 - The Workspace settings.json file is specific to a project and is stored in a .vscode folder at the root of your project. These settings override the User settings and only apply when the workspace is opened.
Price   $$
Address   920 Prestonwood Dr., 30043, Lawrenceville
🌐
Alphr
alphr.com › home › how to open settings.json in vs code
How to Open Settings.json in VS Code
January 18, 2023 - If you’re on a Windows computer, here’s how to use the program to open the settings.json file: Press the “Windows + R” keys to open the run box. Type in “%userprofile%” without the quotations and hit “Enter.” · Select “AppData.” By default, you can’t view the “AppData” file. So, go to “View” and check the “Hidden items” checkbox to get permission to view the file. ... Locate the “Settings.json” file, then right-click it.
🌐
Rip Tutorial
riptutorial.com › user and workspace settings
Visual Studio Code - User and Workspace Settings | visual-studio-code Tutorial
By default Visual Studio Code shows ... file is located here: ... The workspace settings file is located under the .vscode folder in your root folder....