toggleSettingsChangesA 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 extensionEdit the Global, User, or Workspace settings file of your choice, and add an
entry for Here's an example of the settings I use (based on settings that kentcdodds shows for doing screencasts):
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. AcknowledgementsThanks 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: DevelopmentQuestions, 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 |