How do I remove VS Code & settings from Ubuntu?

9

3

VS Code is giving me some problems w/ formatting. I'd like to fully remove it and re-install.

However, each time I remove it and re-install, when I open it, it still remembers what I had opened.

This leads me to believe there's a settings file somewhere I'm missing.

Methods I've tried:

  1. sudo dpkg --purge code & sudo dpkg --remove code
  2. Uninstalling via gdebi
  3. Full removal via synaptic package manager
  4. Cussing, swearing, etc.

No dice. What am I missing?

Brandon

Posted 2016-08-13T00:19:27.377

Reputation: 881

Answers

15

Try renaming ~/.config/Code/User/settings.json.

Or just move/delete the folders ~/.config/Code and ~/.vscode.

You may want to backup any code snippets in ~/.config/Code/User/snippets/

See also: Visual Studio Code User and Workspace Settings

Louis

Posted 2016-08-13T00:19:27.377

Reputation: 18 859

1A+. Did the trick & fixed my VSCode bug. For posterity, I'll add that I also deleted ~/.vscode. Not sure if that mattered, but didn't seem to hurt anything. – Brandon – 2016-08-13T00:38:17.783

^^to clarify, I deleted the entire ~/.config/Code folder, not just the settings.json. – Brandon – 2016-08-13T00:45:42.393

3

Remove software

  • If you installed via Snap:

    $sudo snap remove vscode

  • If you installed via apt:

    $sudo apt-get purge code

  • If you installed via Ubuntu Software, open Ubuntu Software, look for the app in the installed category, and click on remove.

Remove settings

$cd ~ && rm -rf .vscode && rm -rf .config/Code

adriaanbd

Posted 2016-08-13T00:19:27.377

Reputation: 31

1IMHO this should be the accepted answer, worked perfectly, also very precise – Martin Meeser – 2019-04-26T10:27:38.423

0

Go to /usr/share and find the installation folder of VS Code, which is code-insiders/ for an insider preview and code for a regular installation. Remove the folder which you don't find necessary.
Don't forget to remove the start menu entry in /usr/share/applications/

To remove the application settings go to your home folder and remove the .vscode folder.


Also if you want to backup your user settings before all this, try the settings sync extension.

klvenky

Posted 2016-08-13T00:19:27.377

Reputation: 101