Sublime Forum

How to config it to highlight current indent guide?

#1

When there are many lines of code indented, it’s hard to distiguish which line belongs to which block,
I think it hard for me to discribe that clearly. Here’s the example:


html
  head
    title
  body
    div
        div
        | div
        |   div
        |     div
        F

When I put my caret at F, I want it to highliight the indent guide right abode F.
How to make it?

0 Likes

#2

Sublime has three guides, which you can color as below:

[code]guide
#FF0000

stackGuide
#00FF00

activeGuide
#0000FF[/code]

I also have this in my User Preferences file:

[code]“indent_guide_options”:

"draw_normal",
"draw_active"

],[/code]

0 Likes

#3

[quote=“nick.”]Sublime has three guides, which you can color as below:

[code]guide
#FF0000

stackGuide
#00FF00

activeGuide
#0000FF[/code]

I also have this in my User Preferences file:

[code]“indent_guide_options”:

"draw_normal",
"draw_active"

],[/code][/quote]

Thanks. With your configurations it looks much better now. Better colors.
If there’s one guide line after activeGuide, that would be what I want most.

0 Likes

#4

Perhaps you may also find my plugin CursorRuler to be of some interest:

0 Likes

#5

Opening-Bracket missing…

"indent_guide_options":
[
    "draw_normal",
    "draw_active"
],

PS: VSCode added this feature now… several years after sublimetext :wink:

0 Likes