Author Topic: Draw a vertical line between matching braces  (Read 6360 times)

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Draw a vertical line between matching braces
« on: April 01, 2015, 06:44:35 PM »
Notepad++ is able to draw a vertical line between matching braces, as shown in the below screenshot. It is very helpful.

It would be great if SE could also do this.

WilliamLeara

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Draw a vertical line between matching braces
« Reply #1 on: May 07, 2015, 06:19:19 AM »
I'd like brace indentation guidelines --  faint dotted lines that match up vertically between each open/close brace.  VisualStudio, Notepad++, and UltraEdit all have this.  It's the only thing I miss in SlickEdit!

Dennis

  • Senior Community Member
  • Posts: 3960
  • Hero Points: 517
Re: Draw a vertical line between matching braces
« Reply #2 on: November 22, 2016, 12:54:37 AM »
You might want to try enabling the Selective-Display bracketing that was added in SlickEdit 2015.

    Tools > Options > Appearance > General > Selective Display

    Document > C/C++ Options > View > Create file outline > Statement level.

We plan to do the indentation guides more dynamically in a future release, but this works quite well at the moment.
« Last Edit: November 22, 2016, 01:10:46 AM by Dennis »

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Draw a vertical line between matching braces
« Reply #3 on: November 24, 2016, 12:00:58 AM »
Thanks Dennis. I tried this and it is certainly an improvement. But I think it would be nicer if the vertical lines would be shown in the same column as the vertical braces instead of stacking them up to the left of the screen (or give the option to choose where to put the vertical lines).

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: Draw a vertical line between matching braces
« Reply #4 on: April 03, 2017, 10:31:27 PM »
I agree with rowbearto. It would look much better if the lines were in the same column as the braces.

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Draw a vertical line between matching braces
« Reply #5 on: December 12, 2021, 10:15:14 PM »
Just a reminder about this feature request. It would be very handy. I see this feature in multiple other IDEs.

jwiede

  • Senior Community Member
  • Posts: 112
  • Hero Points: 12
Re: Draw a vertical line between matching braces
« Reply #6 on: December 26, 2021, 05:19:46 PM »
+1 another vote for "inline" vertical lines showing brace scope (not just gutter lines).


Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Draw a vertical line between matching braces
« Reply #7 on: December 26, 2021, 09:39:45 PM »
How about just color coding the background of the curly braces like HighlightParens does for parentheses.  Easier to spot than tracking vertical lines and works better when the range of lines is not all visible on the screen.

What does "selective display line color" do?  For me it doesn't change the color of the vertical lines.

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Draw a vertical line between matching braces
« Reply #8 on: January 02, 2022, 03:42:50 PM »
I'd prefer the vertical lines. Especially when the scope is too big to see on the screen and the matching curly braces are off screen.

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: Draw a vertical line between matching braces
« Reply #9 on: January 03, 2022, 12:31:12 AM »
oh, ok, how about both colored vertical lines and colored background and a configuration option to select which. 

Also if the range of the block means it can't all be shown on one screen then a command to hide / unhide lines in the middle of the block  - or maybe a command that progressively hides/unhides more and more lines.

mako

  • Community Member
  • Posts: 28
  • Hero Points: 1
Re: Draw a vertical line between matching braces
« Reply #10 on: April 27, 2022, 06:47:39 PM »
Also if the range of the block means it can't all be shown on one screen then a command to hide / unhide lines in the middle of the block  - or maybe a command that progressively hides/unhides more and more lines.
The command hide-code-block will collapse the block that the cursor is in.


I think having an option to draw the vertical line connecting block start and end at the indentation level of the surrounding block would be much more useful than the current behavior of stacking them all up as far left as possible. As it is now, because my C++ code uses multi-level deep namespaces, the vertical lines are more of a distraction than an aid.