Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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) in PATH
    • 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.
  • No Administrator privileges required: All context menus, PATH entries, and per-program tool registry entries are written under your user account (HKCU / User PATH).

First Installation via main.bat

  1. Extract the release archive (or clone the repository) to a folder of your choice.
  2. (Optional) Review config.ini to customize:
    • DefaultInstallDir (e.g., D:\IDE\{program_name})
    • DefaultToolsDir (e.g., D:\CLI\{tool_name})
    • DefaultProduct (vscode or vscodium) and DefaultChannel (stable or insiders)
    • OptionalProfiles (e.g., portable-essentials, privacy, no-ai, low-end, ext-general)
    • EditorConfigFile (e.g., editor.ini for your own custom settings/extensions)
  3. Double-click main.bat (or run main.bat "D:\IDE\VSCode" from a terminal to override the target folder).
  4. Choose Option 1 — Download & Install Portable Editor.

What Option 1 Does Automatically

  1. Downloads the latest official Windows x64 .zip archive (Microsoft CDN for VS Code, GitHub Releases for VSCodium).
  2. Extracts the archive into your target directory and creates the Portable Mode folders:
    • <InstallDir>\data\
    • <InstallDir>\data\user-data\User\
    • <InstallDir>\data\extensions\
  3. Registers 4 Windows Explorer right-click context menus (Files, Folders, Folder Background, Drives) under HKCU\Software\Classes.
  4. Adds <InstallDir>\bin to your User PATH so code / code-insiders / codium / codium-insiders work from any terminal.
  5. Checks software dependencies for any preconfigured extensions and installs missing portable tools (with User PATH & official HKCU registry keys).
  6. Writes your merged settings.json into <InstallDir>\data\user-data\User\settings.json.
  7. 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 TypeLocation
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.


Next Steps