Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>toggle-settings-changesNew to Visual Studio Code? Get it now.
toggle-settings-changes

toggle-settings-changes

John Reagan Publisher

|
305 installs
| (1) | Free
A settings toggler that doesn't require configuration for both states. It will use your existing settings (or default) values for the settings you configure to toggle, and switch between those and your configured values.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

toggleSettingsChanges

A VS Code settings toggler that stores previous settings, and only requires you to define a single "toggled" state for settings you want to change -- not both states.

Personally, I wanted this flexibility. If you don't need that, I suggest checking out SettingsCycler

How to use this extension

Edit the Global, User, or Workspace settings file of your choice, and add an entry for toggleSettingsChanges.settingsToToggle with an object value. That object should contain the keys/values of specific settings that you want to toggle to. No need to specify the "un-toggled" state, as this extension uses your existing (or default) settings values when switching back.

Here's an example of the settings I use (based on settings that kentcdodds shows for doing screencasts):

"toggleSettingsChanges.settingsToToggle": {
    "window.zoomLevel": 2,
    "editor.fontSize": 22,
    "terminal.integrated.fontSize": 16,
    "scm.diffDecorations": "none",
    "workbench.statusBar.visible": false,
    "editor.cursorBlinking": "solid",
    "workbench.activityBar.visible": false
}

Once the extension is installed, it creates a VS Code Command that becomes available in the Command Palette.

You can activate the command, and toggle the assigned settings, by finding it in the Command Palette, named "Toggle Settings".

You can further customize this by adding your own keybinding for that command.

Acknowledgements

Thanks to Cody for open-sourcing SettingsCycler, which got me started down this road. That code was very helpful to get this up and running.

Includes contributions from:

  • logiclrd

Development

Questions, comments, Issues, and Pull Requests are welcome! This project was created to fulfill a specific need of mine, and is open-source code available at https://github.com/tcg/vscode-toggle-settings

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