Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code (VSCode) - how to update the standalone (.zip) version?

There is no "check for updates" when using the standalone/no install version.

What is best way to update a standalone version without losing settings etc.?

like image 392
Rick B. Avatar asked Mar 29 '18 15:03

Rick B.


People also ask

How do I manually update Visual Studio Code?

You can also manually check for updates by running Help > Check for Updates on Linux and Windows or running Code > Check for Updates on macOS. Note: You can disable auto-update if you prefer to update VS Code on your own schedule.

How do you update all extensions in Visual Studio Code?

Select the Update button for the outdated extension and the update will be installed and you'll be prompted to reload VS Code. You can also update all your outdated extensions at one time with the Update All Extensions command.

How do I update Visual Studio Code from terminal?

If you have already installed VS code, go to the terminal and type two different commands: sudo apt update. sudo apt-get upgrade code.


3 Answers

According to my experience (VSCode in a standalone .zip file uncompressed in D:\ using Win7 OS) you just need to download and uncompress the archive containing the new version (v 1.41.1).

When you run Code.exe in the new folder, your settings file is used and everithing is OK. (then, when you are really really sure that it is everithing OK, you could delete the old version).

If you changed the default settings file location, take a look at https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations

like image 82
Giacomo Z. Avatar answered Nov 08 '22 21:11

Giacomo Z.


From the official doc it says when downloaded through zip file, one has download the release manually for each update and place the unzip version inside the Program files (Windows).

like image 39
Bharathvaj Ganesan Avatar answered Nov 08 '22 19:11

Bharathvaj Ganesan


According to the special portable page all the settings, plugins, etc. of the standalone version
are stored in the data-folder. So assuming you called your vscode-folder vscode:

  1. download the new version
  2. unpack to vscode2 folder adjacent to current vscode
  3. move data folder from vscode to vscode2
  4. delete old vscode-folder
  5. rename vscode2 to vscode
  6. done

P.S.: Current portable versions notify about new version, but clicking on it leads to download, so above list still applies.

Edit 2020/08/04: To make a "normal" install portable one just needs to create the data folder inside the installation/unpack directory of VSC.

like image 44
Alim Özdemir Avatar answered Nov 08 '22 19:11

Alim Özdemir