The keys are Node.js process.platform values. The values must match your VS Code profile names exactly.
Other Settings
Setting
Type
Default
Description
osProfileSwitcher.enableAutoSwitch
boolean
true
Enable/disable auto-switch on startup
osProfileSwitcher.showNotification
boolean
true
Show notification after switching
Commands
Command
Description
OS Profile Switcher: Switch to OS Profile
Manually pick a profile to switch to
OS Profile Switcher: Show Current Platform
Show current platform and configured profile
OS Profile Switcher: Reset to Default Profile
Clear project state and switch to Default profile
How It Works
On startup, the extension reads available profiles from VS Code's internal storage.json
It checks osProfileSwitcher.profiles in settings for the current platform's target profile
If the current project hasn't been switched yet, it executes the profile switch
The project is marked as switched in a state file to avoid repeated switching on reload
Use the Reset to Default Profile command to clear the state and re-enable auto-switch
Requirements
VS Code 1.85.0 or later
Profiles must be created in VS Code before configuring the extension
Note
VS Code settings are per-profile. You need to configure osProfileSwitcher.profiles in each profile where you want auto-switch to work. Alternatively, configure it in all profiles via Settings Sync.