Visual Studio Code – Portable Mode (Windows)

What is Portable Mode?

Portable Mode lets you run VS Code along with all its settings and extensions from a single folder—ideal for using from a USB drive or different machines without installing.

How to Enable It on Windows

  1. Download the ZIP version of VS Code for Windows (not the installer).
  2. Extract the ZIP into a folder.
  3. Create a data subfolder inside that folder:
    1
    2
    3
    4
    5
    |- VSCode-win32-x64-<version>
        |- Code.exe
        |- data
        |- bin
        |- ...
    
  4. Starting from then on, VS Code will store all user-related data—settings, session state, extensions, etc.—inside that data folder instead of the usual AppData directories.

Important Notes

  • Do not attempt this with an installer-based installation (MSI/EXE). It only works with the ZIP archive.
  • The Windows ZIP archive does not support auto-updates—you’ll need to update manually.

Updating Portable VS Code

To update, simply extract the newer ZIP version and copy over or move your existing data folder into the new folder.

Migrating an Existing Installation to Portable Mode

You can convert an existing user installation to Portable Mode:

  1. Download and extract the ZIP as described.
  2. Inside the data folder, create subfolders and copy over:

    • user-data: copy your user data (e.g., from %APPDATA%\Code)
    • extensions: copy extensions (e.g., from %USERPROFILE%\.vscode\extensions)

    Resulting structure:

    1
    2
    3
    4
    5
    6
    |- VSCode-win32-x64-<version>
        |- Code.exe
        |- data
            |- user-data
            |- extensions
        |- ...
    

Optional: TMP Directory

VS Code in Portable Mode still uses the system’s TMP directory by default. If you’d prefer it to be self-contained, create an empty tmp folder inside the data directory. VS Code will then use that for temporary files.


Summary Table

Step Action
Download Get the ZIP version for Windows (not installer)
Extract Unzip to a folder
Create data folder Inside the VS Code folder
Run Launch Code.exe from inside the folder
Portability Entire setup (settings, extensions, session) moves with the folder
Updates Manual—copy data into new version’s folder
Optional TMP setup Place empty tmp folder inside data to localize temp files

Source: (Visual Studio Code)

Edit

Pub: 17 Aug 2025 01:11 UTC

Views: 34