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

Automatic Profile Switcher

Crend King

|
3 installs
| (0) | Free
Automatcially switch VSCode profile by file extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Automatically switch VSCode profile by current file's extension.

For instance, if profile "Python" is configured to be activated by files with extension "py", every time a .py file is opened or focused, we activate the "Python" profile.

Make sure to install this extension on all profiles needed, so that the switching can happen from any of those.

Note: since VSCode does not have any official API for getting profile information, we are using the similar "hack" from the Profile Status extension.

Example configuration

"autoProfileSwitcher.mapping": [
    {
        "profile": "C++",
        "extensions": ["cpp", "cxx"]
    },
    {
        "profile": "Python",
        "extensions": ["py"]
    },
],

// By default, disable the switching if the current VSCode window opened a workspace
// Useful if the workspace contains variety of file extensions

"autoProfileSwitcher.disableForWorkspace": true,

Attribution

Extension icon: Switch icons created by Freepik - Flaticon

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