Dims text outside of the current block by reducing the opacity of the text. Helps you focus. Works great with high contrast themes.
Set a keybinding for
Toggle Dimmer in the command palette, or use the
Original code by hoovercj, block capability by jmasramon, uploaded by andrewmorsillo
"description": "When set to true, the extension will dim non-selected text."
"description": "Decides whether the `ToggleDimmer` command will affect the user (global) or workspace (local) settings."
"description": "An integer between 0 and 100 used for the opacity percentage for the dimmed (non-selected) text."
"description": "Delay in milliseconds for dimming the non-selected text to reduce number of API calls in the event of rapid selection changes. Defaults to 0, but set higher if it feels like it is causing problems."
- Highlight current block instead of just a few lines. Thanks @jmasramon
- Republish with different name VSCode Dimmer Block to separate it from non-block version
- Dim on editor change (e.g. ctrl+tab). Thanks @roblourens
- Highlight context (n lines before/after). Thanks @rebornix
dimmer.dimSelectedLines has been replaced by