Visual Studio Code (VSCode) — update the standalone (.zip) version -Portable mode version

david medragh
2 min readMay 2, 2020

--

  1. download the new version
  2. unpack to vscode2 or any name folder adjacent to current vscode
  3. copy data folder from vscode to vscode2
  4. backup the old vscode-folder to secure your former EDI
  5. rename vscode2 to vscode
  6. done

first let me remind you

Visual Studio Code supports Portable mode. This mode enables all data created and maintained by VS Code to live near itself, so it can be moved around across environments.

This mode also provides a way to set the installation folder location for VS Code extensions, useful for corporate environments that prevent extensions from being installed in the Windows AppData folder.

Portable mode is supported on the ZIP download for Windows and Linux,

Your VS code data files are here ==> %APPDATA%\Code you should migrate to portable mode by moving this folder to your vscode folder

Migrate to Portable mode

You can also migrate an existing installation to Portable mode:

  1. Download the VS Code ZIP distribution for your platform.
  2. Create the data or code-portable-data folder as above.
  3. Copy the user data directory Code to data and rename it to user-data:
  • Windows %APPDATA%\Code
  • macOS $HOME/Library/Application Support/Code
  • Linux $HOME/.config/Code
  • Copy the extensions directory to data:
  • Windows %USERPROFILE%\.vscode\extensions
  • macOS ~/.vscode/extensions
  • Linux ~/.vscode/extensions

TMP directory

By default, the default TMP directory is still the system one even in Portable Mode, since no state is kept there. If you wish to also have your TMP directory within your portable directory, you can create an empty tmp directory inside the data folder. As long as a tmp directory exists, it will be used for TMP data

at the end of the migration to portable version tou should have this structure of your vscode data folder

--

--

No responses yet