Dims text outside of selections by reducing the opacity of the text. Supports multiple selections.
Set a keybinding for
Toggle Dimmer in the command palette, or use the
By default the extension will dim all lines that don't have an extension. Use the
dimmer.context setting to leave N lines before and after un-dimmed. Setting it a negative number will dim everything but the selection.
dimmer.when controls when to dim the editors. The default value is
always, but setting it to
selection will only dim an editor when it has a non-empty selection.
"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": "Number of lines before and after the current line that are not dimmed. 0 will dim everything but lines with a selection and a negative number will dim everything except the curent selection. Defaults to 0."
"description": "Decides whether the extension should always dim editors or if it should dim an editor only when there is a non-empty selection."
"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."
dimmer.when setting allows dimming only when editors have non-empty selections
- Bux fix: Dim on editor change (e.g. ctrl+tab). Thanks @roblourens
- Feature: Highlight context (n lines before/after). Thanks @rebornix
dimmer.dimSelectedLines has been replaced by