How to Uninstall or Disable Extensions in VS Code

avatar
Borislav Hadzhiev

Last updated: Apr 10, 2024
5 min

banner

# Table of Contents

  1. Uninstall a VS Code extension
  2. Disable an extension in VS Code
  3. Disable all extensions in VS Code
  4. Uninstall all extensions in VS Code
  5. Removing the contents of the extensions folder on Windows
  6. Removing the contents of the extensions folder on macOS and Linux

Note: if you need to uninstall all VS Code extensions, click on the following subheading:

# Uninstall a VS Code extension

To uninstall an extension:

  1. Click on Extensions in the left sidebar.
  • You can also open the Extensions menu by pressing:
    • Ctrl + Shift + X on Windows or Linux
    • Command + Shift + X on macOS
  1. Type the name of the extension or select it from the INSTALLED extensions list.

  2. Right-click on the extension and click on Uninstall.

right click uninstall extension

You can also left-click on the extension and uninstall it from the main window.

uninstall extension from main window

Once you click on the Uninstall button, the extension is uninstalled.

extension uninstalled

You might get prompted to reload VS Code after uninstalling the extension.

If you aren't able to find the extension that you want to uninstall, use the @installed filter.

using installed filter

When the @installed filter is active, only the installed extensions are shown.

# Disable an extension in VS Code

If you need to disable the extension, click on the Disable button.

If you click on the arrow next to the Disable button, you can either disable the extension globally or only in the current workspace.

disable extension

When you disable an extension, it isn't permanently removed.

You can later reenable the extension by right-clicking on it and selecting Enable.

enable extension

This is more convenient when you only need to temporarily stop the extension.

If you aren't able to find the extension that you want to uninstall, use the @enabled filter.

using enabled filter

When the @enabled filter is active, only the enabled extensions are shown.

# Disable all extensions in VS Code

If you need to disable all extensions:

  1. Press:
  • Ctrl + Shift + P on Windows and Linux.
  • Command + Shift + P on macOS.
Note: you can also press F1 to open the Command Palette.
  1. Type disable all extensions and click on Extensions: Disable All Installed Extensions.

disable all installed extensions

If you only want to disable the extensions in the current workspace, select Extensions: Disable All Installed Extensions for this Workspace.

You can also:

  1. Click on Extensions in the left sidebar.
  • You can also open the Extensions menu by pressing:
    • Ctrl + Shift + X on Windows or Linux.
    • Command + Shift + X on macOS.
  1. Click on the three dots icon at the top and select Disable all installed extensions.

disable all extensions from menu

# Uninstall all extensions in VS Code

The easiest way to uninstall all VS Code extensions is to locate the extensions folder and delete its contents.

The extensions are located under a different path depending on your operating system.

On Windows, the path is:

  • %USERPROFILE%\.vscode\extensions

The path resolves to C:\Users\<username>\.vscode\extensions.

Make sure to replace the <username> placeholder with your actual username.

On macOS and Linux, the path is:

  • ~/.vscode/extensions

You can delete the contents of the extensions folder and restart VS Code to uninstall all the extensions.

For example, I am on Linux, so I would delete the extensions from the ~/.vscode/extensions directory.

delete extensions directories

One way to remove the extensions is to use a command.

# Removing the contents of the extensions folder on Windows

The following command deletes the contents of the extensions folder on Windows.

shell
# Windows rmdir /S %USERPROFILE%\.vscode\extensions

windows delete all extensions command

Note that you will get prompted and you have to type Y and press Enter.

The /s parameter deletes the specified files from the directory and all its subdirectories.

Once you remove the contents of the extensions folder, close VS Code and reopen it.

You can also remove the contents of the directory by navigating to it in explorer and deleting the folders.

Paste the following path in the quick access field in Explorer %USERPROFILE%\.vscode\extensions.

paste path to extensions in explorer

The path points to your extensions folder.

Select all extension folders with Ctrl + A and delete the directories.

You can right-click on a directory after selecting all directories and click on Delete.

right click delete extensions

# Removing the contents of the extensions folder on macOS and Linux

The following command deletes the contents of the extensions directory on macOS and Linux.

shell
rm -rf ~/.vscode/extensions

You might get prompted. Type y and press Enter if you do.

Once you remove the contents of the extensions folder, close VS Code and reopen it.

Alternatively, you can open the directory in Finder and delete the folders manually.

To open the directory on macOS:

  1. In Finder, click on Go and then Go to Folder.
  2. Paste the following path ~/.vscode/extensions.
  3. In the extensions directory, press Cmd + A to select the extension folders and delete them.

To open the directory on Linux:

  1. Open your terminal and enter the following commands.
shell
cd ~/.vscode/extensions nautilus .
  1. In the extensions directory, press Cmd + A to select the extension folders and delete them.

You can also use a command to uninstall all extensions on macOS and Linux:

shell
code --list-extensions | xargs -L 1 code --uninstall-extension

The --list-extensions command lists all extensions and the --uninstall-extension command uninstalls each piped extension.

If you need to reset VS Code to the default settings 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.