Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OS Profile SwitcherNew to Visual Studio Code? Get it now.
OS Profile Switcher

OS Profile Switcher

Sp1k3

|
1 install
| (0) | Free
Automatically switch VS Code profiles based on the operating system platform
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OS Profile Switcher

Automatically switch VS Code profiles based on the operating system platform.

If you sync VS Code settings across Windows, macOS, and Linux, this extension automatically activates the correct profile for each OS on startup.

Features

  • Auto-switch to the configured profile on startup based on process.platform
  • Per-project tracking — each workspace is only switched once, avoiding repeated reloads
  • Manual profile switching via Command Palette
  • Reset command to return to Default profile and re-enable auto-switch
  • Status bar indicator showing current platform

Configuration

Add the following to your settings.json (each profile that needs auto-switch must have this setting):

{
  "osProfileSwitcher.profiles": {
    "win32": "Windows",
    "darwin": "MacOS",
    "linux": "Linux"
  }
}

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

  1. On startup, the extension reads available profiles from VS Code's internal storage.json
  2. It checks osProfileSwitcher.profiles in settings for the current platform's target profile
  3. If the current project hasn't been switched yet, it executes the profile switch
  4. The project is marked as switched in a state file to avoid repeated switching on reload
  5. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft