Custom behavior with Setting-Cycler (VSCode)
Sometimes VS Code ships a new feature without a toggle command (editor.minimap.enabled, explorer.autoReveal). Sometimes you want to easily toggle between a light and dark themes. Maybe you want to do something even more complex and toggle multiple settings at once. - Settings Cycler
Customization
Switch focus between editor and integrated terminal
Open the keybindings.json from the editor: CMD-SHIFT-P -> Preferences: Open Keyboard Shortcuts File. Also a nice resource: code.visualstudio.com/docs
Settings Cycler
Add a configuration for the setting, see below.
This is can be at the workspace or user level.
Itβs will be located in the Extension setting: ~/.config/Code/User/settings.json
Cycling theme
Cycling sort order in Explorer
End Cycling configuration
Configure a keyboard shortcut
File > Preferences > Keyboard Shortcuts
This will be located in ~/.config/Code/User/keybindings.json
Written on September 26, 2020, Last update on October 27, 2023
vscode