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

Configuration (config.ini & editor.ini)

Configuration is intentionally split into manager configuration (config.ini) and editor configuration (editor.ini + optional profiles\*.ini files).


config.ini Reference

Leave any [General] option blank to be prompted interactively at runtime. Command-line flags override config.ini.

[General]

KeyValid ValuesDescription
DefaultInstallDirPath template (supports {program_name})Where portable editors are installed (e.g., D:\IDE\{program_name} expands to D:\IDE\VSCode, D:\IDE\VSCodium-Insiders). Leave blank to prompt.
DefaultToolsDirPath template (supports {tool_name})Where portable extension dependencies are installed (e.g., D:\CLI\{tool_name} expands to D:\CLI\Git, D:\CLI\Ripgrep, D:\CLI\Python).
DefaultProductvscode | vscodium | blankDefault editor distribution.
DefaultChannelstable | insiders | blankDefault release channel.
AutoAddContextMenutrue | false | blankAutomatically register Explorer right-click context menus on install.
AutoAddPathtrue | false | blankAutomatically add <InstallDir>\bin to User PATH on install.
AutoConfigureSettingstrue | false | blankAutomatically apply resolved INI settings to settings.json on install.
OverwriteExistingSettingsfalse (default) | truefalse performs a non-destructive merge (keeps existing user values and only adds missing keys). true updates conflicting keys from your INI files. Always saves settings.json.bak before editing an existing file.
AutoInstallExtensionstrue | false | blankAutomatically install extensions loaded from [Extensions] in configured profiles / editor.ini.
AutoInstallDependenciestrue | false | blankAutomatically install missing portable software dependencies required by extensions (with PATH & official HKCU registry entries).

[Profiles]

KeyValid ValuesDescription
OptionalProfilesBlank, single name, comma-separated names, or .ini path(s)Optional profiles from profiles\ to load (in order). Leave blank to load zero optional profiles. Example: portable-essentials, privacy, no-ai, low-end, ext-general.
EditorConfigFileRelative/absolute .ini path or blankPath to your personal editor config file (default: editor.ini). Leave blank to skip.

[Logging]

KeyValid ValuesDescription
LogRetentionDaysPositive integer (default: 30)Days to keep daily log files in logs\ before automatic pruning.
LogFilePrefixString or blankCustom filename prefix for logs\<prefix>-YYYY-MM-DD.log. Leave blank to automatically use the project folder name (vscode-portable-manager-YYYY-MM-DD.log).

editor.ini Reference

Your personal editor configuration file (opened via main.bat Option 9) is loaded only when EditorConfigFile is set in config.ini.

[Profile]
Name = Personal Editor Configuration
Description = My custom portable VS Code / VSCodium defaults.

[Settings]
update.mode = none
update.showReleaseNotes = false
editor.fontSize = 14
editor.fontFamily = "JetBrains Mono, Consolas, monospace"
files.autoSave = afterDelay
files.autoSaveDelay = 1000
files.watcherExclude = {"**/node_modules/**": true, "**/dist/**": true}

[Extensions]
editorconfig.editorconfig
ms-vscode.powershell

[Dependencies]
# Optional explicit tool IDs to check/install portably (e.g. git, ripgrep, python)

Supported Value Types Under [Settings]

INI SyntaxWritten to settings.json As
true / falseJSON boolean (true / false)
14, 1000, 1.5JSON number
none, afterDelayJSON string
"14", "Consolas, monospace"Quoted string (forces string type and preserves whitespace/quotes)
\n, \r\nNewline escape string (useful for files.eol = \n)
{"*": false} or ["*.tmp"]Parsed JSON object or array (deep-merged for nested objects!)

Dynamic Path Tokens Under [Settings]

Any string value under [Settings] supports automatic path tokens expanded at write time:

TokenExpands To
{install_dir}Absolute portable editor install directory (e.g., D:\IDE\VSCode)
{data_dir}<InstallDir>\data
{ripgrep_path}Verified rg.exe path (prefers standalone portable/PATH rg.exe, falls back to editor-bundled rg.exe)

Layering & Precedence Order

When multiple INI files are active, settings are merged in strict deterministic order (later layers override earlier ones):

  1. Existing data\user-data\User\settings.json (preserved unless OverwriteExistingSettings = true or -Overwrite)
  2. OptionalProfiles in the exact order listed in config.ini (or -Preset)
  3. EditorConfigFile (editor.ini) — always overrides optional profiles
  4. Auto-wired portable dependency paths (todo-tree.ripgrep.ripgrep, git.path, clangd.path, cmake.cmakePath, shellcheck.executablePath, python.defaultInterpreterPath)
  5. Interactive wizard edits (when using configure.ps1 Option 3)