Allows you to quickly and easily toggle any VS Code setting directly from the status bar.
You choose which settings to toggle. A button is added to the status bar for each.
Perfect for settings you frequently toggle.
Install through VS Code extensions, searching for Easy Toggle Settings. Or go to Visual Studio Code Market Place: Easy Toggle Settings.
For example, let's say we want to toggle these settings:
editor.codeLensbetweentrueandfalse(with the icon disabled whenfalse)editor.renderWhitespacebetween"none"and"all"java.autobuild.enabledbetweentrueandfalseat the workspace level
Open global settings (Ctrl Shift P > Open user settings json) and add at the end:
"easy-toggle-settings.items": [
{
"property": "editor.codeLens",
"icon": "eye",
"values": [true, false],
"disabledValue": false // Optional
},
{
"property": "editor.renderWhitespace",
"icon": "whitespace",
"values": ["none", "all"]
},
{
"property": "java.autobuild.enabled",
"icon": "rocket",
"values": [true, false],
"isWorkspace": true // Optional
}
]Icons can be found at Codicon
After saving the settings, the icons will appear in the status bar. Each click will toggle the setting between the declared values.
🎉 You can now do this for any VS Code setting! 🥳
This extension contributes the following settings:
-
easy-toggle-settings.enabled(boolean, default:true)
Enables or disables the extension functionality. -
easy-toggle-settings.items(array, default:[])
List of settings to toggle. Each item must include:property(string): Full name of any vscode setting (e.g.,editor.codeLens)icon(string): Codicon icon name (e.g.,eye,whitespace)values(array): At least two unique values to cycle throughisWorkspace(boolean, optional): Toggles the setting at the workspace level instead of globally (default:false)disabledValue(any, optional): If the setting reaches this value (must be one of thevalues), the status bar icon will appear disabled/grayed out
See CHANGELOG.
- Fork → Branch → Commit → Push → Open PR
- Found a bug? Open an Issue

