How do I restore the default visual studio code settings?

👤 Diwas Poudel    🕒 Feb 10 2022    📁 FIX

Visual Studio is an open-source code editor with powerful toolings such as Intellisense, Code Completion, auto-indentation, bracket matching, code highlighting, bracket highlighting, font style, family selection, code refactoring, and many more.

There are also numerous plugins and extensions available that allow us to make numerous changes to settings, making our lives easier.

Sometimes you mess up with those settings and don't know which ones are causing the problem, in this case, you like to reset every setting of visual studio code to default.

There are several methods for restoring the default settings in Visual Studio Code. Let us go over each of them.

Note that all these 4 methods will be applied at the Global level to any project you use in Visual Studio Code.

Method 1: Reset VS Code to default using Visual Studio Setting

The steps are as follows:

1 Open Visual Studio
2 Click on the Gear icon located at the bottom left corner next to your Account
3 Click on Settings

Open Settings in Visual Studio Code
fig. Open Setting in Visual Studio Code

4 Click on the file sheet icon 🗄 located at the top right corner. This will open settings.json

settings json file vs code
fig. Settings.json file in VS Code 

5 Now, remove everything from there and replace it with {} bracket.

Remove Everything from Settings json and put opening and closing curly brace
fig. Replace everything with { }

This will reset every user setting made in the visual studio Code.

Method 2: Reset VS Code to default using the "Open Settings (JSON)" command

Using the Open Settings (JSON) command we can reset VS Code settings. The steps are as follows:

1 Open Visual Studio Code
2 Press Ctrl+ Shift + P (Mac or Windows) or just press F1 and type "Open Settings( JSON)" and click on it.

fig. Opening Settings.json by typing "Open Settings( JSON)" in the search field

3 This will open settings.json 
4 Now, remove everything from there and replace it with {} bracket.

Method 3: Reset VS Code to default using File Explorer

In this method, you do not have to open Visual Studio Code. We instead use file explorer.

1 Open Run and type: %userprofile%\AppData\Roaming\Code\User  for Windows OS and press Enter

For Mac : $HOME/Library/Application Support/Code/User

For Linux: $HOME/.config/Code/User.

2 Find the settings.json file and open it with notepad or any code editor
3 Remove everything and put {} bracket.
This will reset every user setting made in visual studio code.

If clearing the settings does not resolve your issue, you may also need to uninstall the extensions.

4 Press + R and type : %USERPROFILE%\.vscode\extensions and press Enter

For Mac:~/.vscode/extensions
For Linux: ~/.vscode/extensions

5 Delete everything from there. 
This will delete all your extension installed. 

Method 4: Reset VS Code for Unix User

To remove all your settings and extension without any prompt message use the below command one by one :

rm -r ~/.vscode-oss/
rm -r ~/.config/Code - OSS/

Here, we are removing the vscode-oss folder and config/Code - OSS folder. And '~' denotes /home/username in Unix System

Method 5: Reset VS Code for a particular key only to default using Settings Search Bar

Sometimes you know exactly what you're doing and which 'key' in the settings is causing the issue. If you know that, you can easily make that key-value the default.

Suppose my settings 'fontSize' is creating the problem and I want to set it to default.

1 Press Ctrl +, and this will open Setting Search Bar then type key there. In my case, I will type fontsize and it will filter out other nonmatching keys and will only show you the font size setting.

2 Now to edit this fontsize setting then click on Gear Icon located at the size and click on Reset Setting and this will reset the particular field only.

This applies only to this key. If you want to apply for another key then follow similar steps.


Where to reset visual studio Code settings?

Ans: Simple option is to use the settings.json file.

How to reset Magnification in Visual Studio Code?

Ans: Reseting Magnification in Visual Studio Code is very simple. Just follow the below steps: 

  1. Press Ctrl + Shift + P to open the command palette.
  2. Type "reset zoom"
  3. Press Enter
How to create sets based on Project?

You can create settings.json for each project by creating a new file and inside that create a setting object and assign key-value setting there as shown below.

{ "folders":
"path": "..."
"setting-1": 14%,
"setting-2": "../js/",
"setting-3": "2px"


Ourtechroom Main Logo
Hello and thank you for visiting! We'll talk about everything from how to troubleshoot tech issues, to emerging technology, games, gadgets, and fun facts about technology.
Contact :