Getting Started
This guide walks you through installing and managing a self-contained portable copy of Microsoft VS Code or VSCodium on Windows.
Prerequisites
- Windows 10 / 11 (x64)
- PowerShell 7.x (
pwsh.exe) inPATH- This project intentionally requires PowerShell 7.0+ (
#Requires -Version 7.0) because Windows PowerShell 5.1 is being phased out. - Install PowerShell 7 via winget:
winget install Microsoft.PowerShell - Or download the portable Windows x64 ZIP from PowerShell/PowerShell Releases.
- This project intentionally requires PowerShell 7.0+ (
- No Administrator privileges required: All context menus,
PATHentries, and per-program tool registry entries are written under your user account (HKCU/ UserPATH).
First Installation via main.bat
- Extract the release archive (or clone the repository) to a folder of your choice.
- (Optional) Review
config.inito customize:DefaultInstallDir(e.g.,D:\IDE\{program_name})DefaultToolsDir(e.g.,D:\CLI\{tool_name})DefaultProduct(vscodeorvscodium) andDefaultChannel(stableorinsiders)OptionalProfiles(e.g.,portable-essentials, privacy, no-ai, low-end, ext-general)EditorConfigFile(e.g.,editor.inifor your own custom settings/extensions)
- Double-click
main.bat(or runmain.bat "D:\IDE\VSCode"from a terminal to override the target folder). - Choose Option 1 — Download & Install Portable Editor.
What Option 1 Does Automatically
- Downloads the latest official Windows x64
.ziparchive (Microsoft CDN for VS Code, GitHub Releases for VSCodium). - Extracts the archive into your target directory and creates the Portable Mode folders:
<InstallDir>\data\<InstallDir>\data\user-data\User\<InstallDir>\data\extensions\
- Registers 4 Windows Explorer right-click context menus (
Files,Folders,Folder Background,Drives) underHKCU\Software\Classes. - Adds
<InstallDir>\binto your UserPATHsocode/code-insiders/codium/codium-insiderswork from any terminal. - Checks software dependencies for any preconfigured extensions and installs missing portable tools (with User
PATH& officialHKCUregistry keys). - Writes your merged
settings.jsoninto<InstallDir>\data\user-data\User\settings.json. - Installs preconfigured extensions directly into
<InstallDir>\data\extensions.
Understanding Portable Mode
When a data\ folder exists alongside Code.exe or VSCodium.exe, the editor runs in official Portable Mode:
| Data Type | Location |
|---|---|
User Settings (settings.json) | <InstallDir>\data\user-data\User\settings.json |
| Keybindings & Snippets | <InstallDir>\data\user-data\User\ |
| Installed Extensions | <InstallDir>\data\extensions\ |
| Cache & Workspace State | <InstallDir>\data\user-data\ |
Nothing is written to %APPDATA%\Code or %USERPROFILE%\.vscode, making it easy to move, back up, or run multiple editions side by side.