Last updated: Apr 10, 2024
Reading time·5 min
Note: if you need to uninstall all VS Code extensions, click on the following subheading:
To uninstall an extension:
Ctrl
+ Shift
+ X
on Windows or LinuxCommand
+ Shift
+ X
on macOSType the name of the extension or select it from the INSTALLED extensions list.
Right-click on the extension and click on Uninstall.
You can also left-click on the extension and uninstall it from the main window.
Once you click on the Uninstall button, the extension is uninstalled.
If you aren't able to find the extension that you want to uninstall, use the
@installed
filter.
When the @installed
filter is active, only the installed extensions are shown.
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.
When you disable an extension, it isn't permanently removed.
You can later reenable the extension by right-clicking on it and selecting Enable.
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.
When the @enabled
filter is active, only the enabled extensions are shown.
If you need to disable all extensions:
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.If you only want to disable the extensions in the current workspace, select Extensions: Disable All Installed Extensions for this Workspace.
You can also:
Ctrl
+ Shift
+ X
on Windows or Linux.Command
+ Shift
+ X
on macOS.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.
One way to remove the extensions is to use a command.
The following command deletes the contents of the extensions folder on Windows.
# Windows rmdir /S %USERPROFILE%\.vscode\extensions
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
.
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.
The following command deletes the contents of the extensions
directory on
macOS and Linux.
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:
~/.vscode/extensions
.Cmd
+ A
to select the extension
folders and delete them.To open the directory on Linux:
cd ~/.vscode/extensions nautilus .
Cmd
+ A
to select the extension
folders and delete them.You can also use a command to uninstall all extensions on macOS and Linux:
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:
You can learn more about the related topics by checking out the following tutorials: