Is it possible to visualize indentation levels on QtCreator?
-
I would like to see vertical lines that show the indentation levels, which makes code easier to read for me. Is there a way to enable this on QtCreator? It seems impossible with built-in options, but maybe there are some tricks to achieve that? Thanks in advance.
-

@jeremy_k here is an example of what I'm asking about (this image is from CLion). I think Highlight Blocks is meant to do this task, but it looks horrible to my eyes and I get tired very quickly because instead of highlighting the block it highlights everything else but the block which actually makes it harder to code, so I was wondering if there is a workaround.
-
Can you clarify which portion of the screen capture is the feature of interest, by circling it or otherwise differentiating from the other features?
edit: I think I understand now. There are vertical lines at the level of the struct BoundFlagRef declaration, and at setFlag().
This might be possible using custom syntax highlighting. In the generic highlighter tab, there's a link to KSyntaxHighlighting that in turn suggests looking at the kate syntax highlighting format.
-

@jeremy_k here is an example of what I'm asking about (this image is from CLion). I think Highlight Blocks is meant to do this task, but it looks horrible to my eyes and I get tired very quickly because instead of highlighting the block it highlights everything else but the block which actually makes it harder to code, so I was wondering if there is a workaround.
@Hayk-0 Are you talking about those up and down arrow things that appear on the left side? It looks like they are for expanding or contracting sections inside { }.
Visual Studio does the same thing. -
As @jeremy_k said, I'm talking about those vertical lines. They are useful to just visually identify the blocks.
-
you can also hover over the arrow besides the line number to highlight the scope:

-
@mrjj @J-Hilk thanks. I just realized that those lines are just the tabs, and tabs in qt creator are highlighted with arrows, so it's highlighter dependent (as stated by @jeremy_k ). But yes, highlighting the blocks by just hovering is useful and solves the general problem. Also, usually I click on the curly braces to find their pairs, but I thought there could be quicker ways. Thanks to all :)
-
as you see there is a setting in display visualize whitespace

