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]
| Key | Valid Values | Description |
|---|---|---|
DefaultInstallDir | Path 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. |
DefaultToolsDir | Path 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). |
DefaultProduct | vscode | vscodium | blank | Default editor distribution. |
DefaultChannel | stable | insiders | blank | Default release channel. |
AutoAddContextMenu | true | false | blank | Automatically register Explorer right-click context menus on install. |
AutoAddPath | true | false | blank | Automatically add <InstallDir>\bin to User PATH on install. |
AutoConfigureSettings | true | false | blank | Automatically apply resolved INI settings to settings.json on install. |
OverwriteExistingSettings | false (default) | true | false 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. |
AutoInstallExtensions | true | false | blank | Automatically install extensions loaded from [Extensions] in configured profiles / editor.ini. |
AutoInstallDependencies | true | false | blank | Automatically install missing portable software dependencies required by extensions (with PATH & official HKCU registry entries). |
[Profiles]
| Key | Valid Values | Description |
|---|---|---|
OptionalProfiles | Blank, 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. |
EditorConfigFile | Relative/absolute .ini path or blank | Path to your personal editor config file (default: editor.ini). Leave blank to skip. |
[Logging]
| Key | Valid Values | Description |
|---|---|---|
LogRetentionDays | Positive integer (default: 30) | Days to keep daily log files in logs\ before automatic pruning. |
LogFilePrefix | String or blank | Custom filename prefix for logs\<prefix>-YYYY-MM-DD.log. Leave blank to automatically use the project folder name (portable-vscode-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 Syntax | Written to settings.json As |
|---|---|
true / false | JSON boolean (true / false) |
14, 1000, 1.5 | JSON number |
none, afterDelay | JSON string |
"14", "Consolas, monospace" | Quoted string (forces string type and preserves whitespace/quotes) |
\n, \r\n | Newline 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:
| Token | Expands 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):
- Existing
data\user-data\User\settings.json(preserved unlessOverwriteExistingSettings = trueor-Overwrite) OptionalProfilesin the exact order listed inconfig.ini(or-Preset)EditorConfigFile(editor.ini) — always overrides optional profiles- Auto-wired portable dependency paths (
todo-tree.ripgrep.ripgrep,git.path,clangd.path,cmake.cmakePath,shellcheck.executablePath,python.defaultInterpreterPath) - Interactive wizard edits (when using
configure.ps1Option 3)