Indent Guide Highlighting#
Rainbow Brackets augments IntelliJ-based IDEs' native indent guide lines with colorized, context-aware highlighting. The feature is configured via indentGuidesOptions in the plugin settings and supports four distinct modes :
| Mode | Tier | Behavior |
|---|---|---|
| Only selected indent guide | Free (default) | Highlights the indent guide only when the caret column matches the guide's column |
| Only current indent guide | Premium | Highlights indent guide lines for the current line |
| All indent guide related | Premium | Highlights all indent guide lines related to the current line |
| Focus mode | Premium | Dims surrounding code to focus on the current indentation scope |
How "Only Selected Indent Guide" Works#
The default free mode (indentGuidesOptions="Only selected indent guide") selects an indent guide only when the caret is in the same column as that guide . This differs from stock IDE behavior (e.g., RustRover), which also selects a guide when the caret is on the same row as a bracket that owns that guide β even if the caret is not at the guide's column .
Known behavioral difference (issue #2897): A reported mismatch (open as of 2026-10-02) shows that placing the caret on a bracket's row in Rainbow Brackets does not highlight that bracket's indent guide unless the caret column aligns exactly with the guide. The stock IDE highlights the guide in this situation. The relevant setting is indentGuidesOptions, stored in the plugin's XML config .
Configuration#
The setting is stored in the plugin's XML settings block under <option name="indentGuidesOptions" value="..." /> . Related settings that interact with indent guide display:
showRainbowIndentGuidesβ master toggle for rainbow indent guide displayindentGuideLineHighlightingStrengthβ controls highlight intensity (0.0β1.0)customIndentGuidesβ enables custom indent guide renderingdisableRainbowIndentsInZenModeβ suppresses rainbow indent guides in Zen ModesuppressAdvancedIndentGuidesBannerβ hides the upgrade prompt for premium indent guide modes
References#
- README β Indent highlighting section: Visual screenshots of all four modes with settings panel screenshot.
- Issue #2897: Open report on the caret-column vs. caret-row selection discrepancy .
- Features Matrix: Shows which languages support indent guide highlighting (free + premium).