Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reinstall VSCode without losing extensions and user settings

After being updated to 1.9.0, some features of the editor just stopped working here. I tried to run with --disable-extensions option and the problem persisted.

Now I want to reinstall to check if the installation is corrupted but I don't want to lose my preferences.

How can I reinstall VSCode keeping my extensions and user settings?

like image 733
Alexandre Thebaldi Avatar asked Feb 08 '17 01:02

Alexandre Thebaldi


People also ask

Can I reinstall Visual Studio Code?

Download the Visual Studio Code installer for Windows. Once it is downloaded, run the installer (VSCodeUserSetup-{version}.exe). This will only take a minute. By default, VS Code is installed under C:\Users\{Username}\AppData\Local\Programs\Microsoft VS Code .

How do I backup all VS Code settings and extensions?

Use the “Sync: Download Settings” (or Shift + Alt + D) option on your other computers. There are a few other options I prefer to set in “Sync: Advanced Options”. “Sync: Toggle Auto-Upload On Settings Change”, “Sync: Toggle Auto-Download on Startup”, and “Sync: Toggle Show Summary Page on Upload / Download”.


3 Answers

I just downloaded vsCode again and installed over the top of my existing install.

This preserved everything and fixed my "Your Code installation appears to be corrupt. Please reinstall." issue.

like image 140
bnieland Avatar answered Oct 13 '22 03:10

bnieland


You can find all settings and preferences for visual studio code here: C:\Users[USER_NAME]\AppData\Roaming\Code

You'll notice some cache directories there. You may try clearing those before a reinstall. My intellisense and formatting randomly quit working all the time and clearing the cache fixes my issues.

like image 17
Tyler Avatar answered Oct 13 '22 04:10

Tyler


I uninstalled and re-installed and my settings all seemed preserved. Some Extensions were disabled but still, it seems to work smoothly with no loss in extensions.

like image 3
user489998 Avatar answered Oct 13 '22 04:10

user489998