How to Reset Visual Studio Code to the Default Settings

avatar
Borislav Hadzhiev

Last updated: Apr 6, 2024
4 min

banner

# Table of Contents

  1. Resetting specific settings in VS Code
  2. How to Reset all VS Code settings to the defaults
  3. Make sure to delete your .vscode/settings.json file as well
  4. Delete the contents of your settings.json file directly
  5. How to Uninstall or Disable Extensions in VS Code
  6. How to Reset your Keyboard Shortcuts in Visual Studio Code

# Resetting specific settings in VS Code

If you only need to reset specific settings:

  1. Press Ctrl + Shift + P (or Command + Shift + P on macOS).
Note: you can also press F1 to open the Command Palette.
  1. Type user settings and select Preferences: Open User Settings.

open user settings

You can also open the settings screen by pressing Ctrl + , on Windows and Linux or Cmd + , on macOS.

  1. Search for the setting you want to reset, e.g. cursor blinking.

  2. Click on the setting and then on the cogwheel icon and select Reset Setting.

reset specific setting

Here is a short clip that demonstrates how this works.

reset specific setting in vscode

You can repeat the steps to reset multiple specific settings.

If you only want to filter for the settings that you've modified, search for @modified.

use modified filter

The @modified filter will only render a list of the settings that you've modified.

Make sure to restart VS Code after resetting your settings.

# How to Reset all VS Code settings to the defaults

If you need to reset all VS Code settings to the defaults:

  1. Press Ctrl + Shift + P (or Command + Shift + P on macOS).
Note: you can also press F1 to open the Command Palette.
  1. Type user settings json.

  2. Click on Preferences: Open User Settings (JSON)

preferences open user settings

  1. Delete the contents of the file and add a set of curly braces {} as a replacement.
settings.json
{}

delete contents of settings json file

Once you delete everything between the curly braces {}, your settings will be reset to the defaults.

You can also open your settings.json file in the following way.

  1. Press Ctrl + Shift + P (or Command + Shift + P on macOS).
Note: you can also press F1 to open the Command Palette.
  1. Type user settings and select Preferences: Open User Settings.

open user settings

You can also open the settings screen by pressing Ctrl + , on Windows and Linux or Cmd + , on macOS.

  1. Click on the Open Settings (JSON) icon in the top right corner.

click icon to open settings json

Once you open the file delete, everything between the curly braces and leave the file looking as follows.

settings.json
{}
Make sure to restart VS Code after resetting your settings.

# Make sure to delete your .vscode/settings.json file as well

Your project-specific configuration is stored in a .vscode/settings.json file in the root directory of your project.

If you have ever edited settings with workspace mode active, this file will contain project-specific configuration that you also have to delete.

delete contents of vscode settings json

You can either delete the entire .vscode/settings.json file or only leave an empty set of curly braces as shown in the screenshot.

.vscode/settings.json
{}

If you need to uninstall all extensions or reset your keyboard shortcuts as well, click on the following articles:

# Delete the contents of your settings.json file directly

You can also delete the contents of your settings.json file directly.

Here are the paths to the settings.json file depending on your operating system:

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

# On Windows

On Windows, start CMD and issue the following command.

cmd
# Windows code %APPDATA%\Code\User\settings.json

reset to default settings windows

Once you open the file, set its contents to an empty set of curly braces {} to reset it to the defaults.

settings.json
{}

You can also use the notepad command to do the same.

cmd
# Windows notepad %APPDATA%\Code\User\settings.json

reset settings using notepad

Make sure to restart VS Code after resetting your settings.

# On macOS

On macOS, open your shell and issue the following command.

shell
# macOS code $HOME/Library/Application\ Support/Code/User/settings.json

Set the contents of the file to an empty set of curly braces {} and save it.

You can also use the gedit command to do the same.

shell
# macOS gedit $HOME/Library/Application\ Support/Code/User/settings.json

# On Linux

On Linux, open your terminal and run the following command.

shell
# Linux code $HOME/.config/Code/User/settings.json

Set the contents of the file to an empty set of curly braces {} and save it.

You can also use the gedit command.

shell
# Linux gedit $HOME/.config/Code/User/settings.json

If you need to uninstall all extensions or reset your keyboard shortcuts as well, click on the following articles:

# Additional Resources

You can learn more about the related topics by checking out the following tutorials:

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.