Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode on Ubuntu, clean reinstall

used Sublime Keymappings for years in vscode, but now I want to switch back to default mappings. So I tried to make a clean reinstall of vscode,following the suggestions on stackoverflow to do so - but I failed.

So far I tried

$ sudo apt remove code && sudo apt autoremove
$ sudo apt-get purge --auto-remove vscode (or visual-sudio-code or code)
$ sudo dpkg --remove vscode //or code etc
$ sudo dpkg --purge vscode

I also deleted

~/.vscode and 
~/.config/Code 

after a "fresh" install I end up with all extensions and settings I manually installed before. Quite anoying ;)

Do I miss something?

I'd appreciate any suggestions helping me out here, thx

like image 727
o-faro Avatar asked Oct 19 '25 05:10

o-faro


1 Answers

The steps you took are correct, some even unnecessary.

Just run the commands:

sudo apt-get purge code

rm -r ~/.vscode/

rm -r ~/.config/Code/

This will also reset the configurations and you can perform a clean installation.

Instead, if VSCode has been installed with snap, the first line becomes:

sudo snap remove code
like image 85
Gurpreet Surinder Singh Avatar answered Oct 22 '25 05:10

Gurpreet Surinder Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!