Visual Studio Code (VSCode) — update the standalone (.zip) version -Portable mode version
- download the new version
- unpack to vscode2 or any name folder adjacent to current vscode
- copy data folder from vscode to vscode2
- backup the old vscode-folder to secure your former EDI
- rename vscode2 to vscode
- 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:
- Download the VS Code ZIP distribution for your platform.
- Create the
data
orcode-portable-data
folder as above. - Copy the user data directory
Code
todata
and rename it touser-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