Tip on Indendation Guides
Posted: Tue Dec 23, 2008 11:30 pm
Normally I find indentation guides distracting so I turn them off. But we've recently added some more options for them, so you can use them like this:
In Settings -> General -> Guides, enable "Show indentation guidelines" and "Highlight matched braces"
In Settings -> Syntax Highlight & Fonts -> C++, set the Indent Guide foreground and background colors equal to your normal editor background color (for me, that's white). (If you don't see "Indent Guide" in the Language Attributes list box, reload defaults.)
Also set the "Brace match" foreground and background colors to something you like.
Now indent guides are active but invisible. But with one nice exception: when you put the caret next to a brace, the indentation guide will be colored the same as the brace matching. So you will see a vertical guide between the two lines containing the braces. This is especially nice when you have a *really* long function block like a switch or for loop, where the two braces don't fit on screen at the same time.
In Settings -> General -> Guides, enable "Show indentation guidelines" and "Highlight matched braces"
In Settings -> Syntax Highlight & Fonts -> C++, set the Indent Guide foreground and background colors equal to your normal editor background color (for me, that's white). (If you don't see "Indent Guide" in the Language Attributes list box, reload defaults.)
Also set the "Brace match" foreground and background colors to something you like.
Now indent guides are active but invisible. But with one nice exception: when you put the caret next to a brace, the indentation guide will be colored the same as the brace matching. So you will see a vertical guide between the two lines containing the braces. This is especially nice when you have a *really* long function block like a switch or for loop, where the two braces don't fit on screen at the same time.