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)

Answer from soulshined on Stack Overflow
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

🌐
Visual Studio Code
code.visualstudio.com › docs › configure › settings
User and workspace settings
November 3, 2021 - The gear icon alongside the setting (⇧F9 (Windows, Linux Shift+F9)) opens a context menu with options to reset a setting to its default value, and to copy the setting ID, copy a JSON name-value pair, or copy the settings URL. ... A settings URL enables you to navigate directly to a specific setting in the Settings editor from the browser. The URL is in the format vscode://settings/<settingName>, where <settingName> is the ID of the setting you want to navigate to.
Discussions

Settings JSON

Preferences: Open Default Settings (JSON) is read-only, you can't modify it.

After Code -> Preferences -> Settings you should to click 'Open Settings(JSON)' icon, not the 'three dots'.

More on reddit.com
🌐 r/vscode
1
1
May 16, 2020
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
Edit defaultsettings.json?

You can change the global settings using

  1. Ctrl/cmd-shift-p

  2. Type settings.json.

  3. Select Preferences: open settings.json.

The settings.json overrides the default global settings. The workspace settings override the global settings.

More on reddit.com
🌐 r/vscode
2
3
July 1, 2020
Cannot Edit Default Settings
VSCode Version: 1.47.3 OS Version: Windows 10, Version 1809 Steps to Reproduce: Open Default Settings ("File -> Preferences -> Settings") Type in Default Settings json file to edit. Window appears "Cannot edit in read-only editor" Does t... More on github.com
🌐 github.com
2
August 1, 2020
🌐
Visual Studio Code
code.visualstudio.com › docs › reference › default-settings
Default settings reference
November 3, 2021 - Visual Studio Code comes with a set of default settings that can be overridden by user or workspace settings. You can change the default settings by using the Settings editor or by editing the settings.json file directly.
🌐
Posit
docs.posit.co › ide › server-pro › user › vs-code › guide › settings.html
VS Code Settings – Posit Workbench Documentation Release 2026.01.1
To edit settings.json, utilize the Command Palette: ... Then, type and select: “Preferences: Open User Settings (JSON)” and press ENTER. ... Workspace settings are specified in .vscode/settings.json within the workspace folder.
🌐
Reddit
reddit.com › r/vscode › settings json
r/vscode on Reddit: Settings JSON
May 16, 2020 -

Hello,

I am following online course and currently we need to change something in User Settings (JSON). The video shows (in VScode) that i need to follow path Code -> Preferences -> Settings and then press on three dots and open settings json. However, on my mac i don't have such option as these three dots.

I managed to open these settings by using keyboard: CMD + Shift + P. It opens dropdown list where i choose Preferences: Open Default Settings (JSON). This is the code which looks the same as my instructor has and i can locate code line i need to update: "code-runner.executorMap" . Learning about Virtual Environments in VSCode. However, the settings opens in read only mode and i can't edit them. How can i open them so i can edit them?

I am complete beginner, had the same problem right at the begining of this online course when we learned about debugging, but i couldn't find an answer so i decided to move on and come back when i understand more about programming itself etc. And here i am, starting to get the idea of programming, but still can't find solution to this one...

🌐
Visual Studio Code
code.visualstudio.com › docs › languages › json
Editing JSON with Visual Studio Code
November 3, 2021 - The current editor mode is indicated in the editor's Status Bar. Select the mode indicator to change the mode and to configure how file extensions are associated to modes. You can also directly modify the files.associations Open in VS Code Open in VS Code Insiders setting to associate file names or file name patterns to jsonc. To understand the structure of JSON files, we use JSON schemas. JSON schemas describe the shape of the JSON file, as well as value sets, default values, and descriptions.
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
🌐
Daniel's Programming Blog
blog.danskingdom.com › Visual-Studio-Code-default-settings-to-change
Change these VS Code default settings to make it even more awesome - Daniel Schroeder’s Programming Blog
January 14, 2024 - If you want to quickly see what settings you’ve changed from the default values, look in the settings.json file. While testing out many different settings, I recommend opening the Settings tab in a separate tab group to the side (grab the tab and drag it to the right side of the text editor), or else opening it a separate VS Code instance on another monitor.
🌐
Visual Studio Code
code.visualstudio.com › docs › getstarted › personalize-vscode
Personalize VS Code
November 3, 2021 - The Settings editor (⌘, (Windows, Linux Ctrl+,)) provides a graphical interface to modify settings. When you modify settings, VS Code stores them in the settings.json file.
🌐
Reddit
reddit.com › r/vscode › edit defaultsettings.json?
r/vscode on Reddit: Edit defaultsettings.json?
July 1, 2020 -

Hi Experts,

I’m new to VSCode so pardon me if this is seems to be a noob question.

I set up a central coding server so keep all my projects in one place and I’m now trying the VSCode remote feature. Every-time I open a new environment the settings I made on the User Workspace are being over written by the default settings on new environment. This is forcing me to redo the setting that I already made before.

Now the questions is, what is the best way to edit the default settings in a way that it will push your preferred settings down to the new environment/workspace?

🌐
GitHub
github.com › microsoft › vscode › issues › 103765
Cannot Edit Default Settings · Issue #103765 · microsoft/vscode
August 1, 2020 - VSCode Version: 1.47.3 OS Version: Windows 10, Version 1809 Steps to Reproduce: Open Default Settings ("File -> Preferences -> Settings") Type in Default Settings json file to edit. Window appears "Cannot edit in read-only editor" Does t...
Author   adam-grant-hendry
🌐
Supunkavinda
supunkavinda.blog › home › vscode settings.json secrets: decoding potential
Vscode Settings.Json: Tips and Techniques - Supunkavinda
May 8, 2024 - Craft folder-specific settings by creating a .vscode folder in the root directory and defining configurations in settings.json.
🌐
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 ·
🌐
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?

🌐
DEV Community
dev.to › softwaredotcom › vs-code-settings-you-should-customize-5e75
VS Code settings you should customize - DEV Community
January 5, 2022 - From the Command Palette, you have a choice between two commands that edit your settings: The Open Settings (JSON) command will let you directly edit the settings JSON file.
🌐
GitHub
github.com › coder › code-server › discussions › 4593
How to specify VSCode (default) settings at code-server launch · coder/code-server · Discussion #4593
December 8, 2021 - Hit the F1 key, type Settings, and hit the JSON mode. Remember, some features are not integrated yet, so it might be a breaking change. If you don't want to break your installation, you could try using the .vscode/config.json method in your ...
Author   coder
🌐
Alphr
alphr.com › home › how to open settings.json in vs code
How to Open Settings.json in VS Code
January 18, 2023 - You can also utilize File Explorer to access the settings.json file. 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.
🌐
GeeksforGeeks
geeksforgeeks.org › python › locating-and-modifying-vscode-settingsjson
Locating and Modifying VSCode settings.json - GeeksforGeeks
August 28, 2024 - Visual Studio Code (VSCode) is a popular code editor known for its customizability. This customizability is mainly due to the settings.json file, where we can configure the editor to our preferences.