VS Code Profile Switcher
|Linux (Node 10.x)|
|Linux (Node 12.x)|
|Windows (Node 10.x)|
|macOS (Node 10.x)|
This extension allows you to define a number of settings profiles that you can easily switch between. The original idea for this extension came from my desire to have an easy way for me to switch my VS Code to a setup that was better optimised for presenting (changed themes, increase font size, etc).
- Open Extensions sidebar panel in Visual Studio Code.
View → Extensions
- Search for
- Click Install
- Click Reload, if required
The extension introduces four new commands that you can use from the command panel. All commands are prefixed with
This saved the current user settings with the name you provide. You can use this to create a new profile or you can update an existing profile. The profile, when saved, is done so against your user-level settings.
Extensions that are installed are stored with the profile. See Extensions for more information on how Extensions are handled.
Note: This looks at the settings at the user level and not the workspace.
This allows you to select a previously saved profile. It'll replace it at the user level, not the workspace level. It works by merging your saved settings over the top of your current settings.
The extensions that are linked to the profile will be installed and extensions that weren't in the profile are removed. See extensions for more information on how Extensions are handled.
This removed a previously saved profile.
Select Live Share Profile
This will set a previously saved profile as the default profile to be used on VS Code Live Share.
Once set, when you launch a Live Share session your profile will be automatically enabled, and then once your session ends the previous profile will be loaded. Thanks @lostintangent for the PR that included it.
A profile isn't just the settings you have enabled, but also the extensions that were installed. This allows you to create different profiles for different styles of development (e.g. a React profile and a Vue profile, loading their respective extensions only).
When you switch profiles the extension will attempt to be intelligent about how the extensions are removed but moving them to the Profile Switcher
globalStoragePath before removing them. Then, when you need to install the extensions again it will attempt to get them from that location rather than having to download them from the marketplace (it'll fallback to marketplace if required).
Always On Extensions
There are some extensions you might always enabled, regardless of profile (such as Settings Sync). To support this there is a property called
extensionsIgnore which is an array of extension ID's that will be ignored when switching profiles. By default it includes Settings Sync and Live Share.
See the CHANGELOG for the latest changes.
Got an idea for what you'd like this extension to do? Feel free to create an issue or pick up an open issue.
Want to build your own extensions? Here's some starting points
- Get VS Code
- Create your first VS Code extension
- VS Code Extension API
- Learn how to add WebPack bundles to your favorite extensions
This was my first time trying to build an extension for VS Code and wouldn't have got this far without: