Completely uninstall VS Code extensions

Visual Studio-Code

Visual Studio-Code Problem Overview


Since the latest release of VS Code, I get an error whenever I open a C# file (I have installed the csharp language extension, powered by OmniSharp). This is the error I get:

enter image description here

I tried uninstalling the extension and re-install it, same problem. I uninstalled the application altogether and reinstalled it - but when I do that, my extensions are still installed (for instance Python and reStructuredText were still there). I uninstalled yet again and deleted the %USER%\AppData\Roaming|Local\Code directory. When I reinstalled, the extensions were still there.

How do I completely remove the installed extensions? I'd like to be sure I'm starting from scratch before opening a bug for the OmniSharp extension crash.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

Turns out the extensions are stored under %USER%\.vscode\extensions. Deleting that gets rid of them.

For Windows : %USER%\\.vscode\extensions (or) %USERPROFILE%\.vscode\extensions

Location of extensions for Linux/MAC: ~/.vscode/extensions

Solution 2 - Visual Studio-Code

All the answers above are correct, but for a beginner, I wanted to add that all you have to do is, run this command in your terminal to remove ALL extensions/themes.

For Mac/Linux

rm -rf ~/.vscode/extensions

For Windows

rmdir %USERPROFILE%\.vscode\extensions /s

Solution 3 - Visual Studio-Code

You can remove them at:

Windows: %USERPROFILE%\.vscode\extensions

Mac: ~/.vscode/extensions

Linux: ~/.vscode/extensions

Solution 4 - Visual Studio-Code

It worked for me, but the enviroment variable was %USERPROFILE%\.vscode\extensions

Solution 5 - Visual Studio-Code

If you work with VS Code-Insiders extensions in folder: Windows

> %USERPROFILE%.vscode-insiders\extension

MAC/Linux:

> ~/.vscode-insiders/extensions

Solution 6 - Visual Studio-Code

If you want to remove a VSCode Extension in Windows 10 on WSL2 completely, then you need to look in a few additional directories:

~/.vscode-server/data/CachedExtensionVSIXs/
~/.vscode-server/data/User/globalStorage/
~/.vscode-server/extensions/

Solution 7 - Visual Studio-Code

For Mac

Finder -> Go to Folder -> Go

enter image description here enter image description here

Paste the directory ~/.vscode/extensions

Your are in your destination.

Solution 8 - Visual Studio-Code

First, you have to find your resources of vscode.
The resources usually located in /usr/share (linux).
So you have to cd to /usr/share/code/resources/app to see extensions directory.
Now, you just use rm -rf extensions to remove extensions directory.

Solution 9 - Visual Studio-Code

For Windows - Users\username.vscode\extensions You may delete what extensions you don't want. And Click on hidden items then follow the below instructions - This PC -> C:\Users\username\AppData\Roaming\Code\CachedExtensionVSIXs and delete file which you uninstalled.

Solution 10 - Visual Studio-Code

All work for me, but there is an issue need to fix to get the directory on Windows use:

>%USERPROFILE%\.vscode\extension,

That's it.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAstaarView Question on Stackoverflow
Solution 1 - Visual Studio-CodeAstaarView Answer on Stackoverflow
Solution 2 - Visual Studio-CodeAhmad AwaisView Answer on Stackoverflow
Solution 3 - Visual Studio-CodeDzungView Answer on Stackoverflow
Solution 4 - Visual Studio-CodearendonView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeTimbiozView Answer on Stackoverflow
Solution 6 - Visual Studio-CodeioCronView Answer on Stackoverflow
Solution 7 - Visual Studio-CodeTunvir Rahman TusherView Answer on Stackoverflow
Solution 8 - Visual Studio-CodeHieu DoanView Answer on Stackoverflow
Solution 9 - Visual Studio-CodeSudharshan SView Answer on Stackoverflow
Solution 10 - Visual Studio-CodeWhizkevinaView Answer on Stackoverflow