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

rowbearto

  • Senior Community Member
  • Posts: 2076
  • Hero Points: 126
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3514
  • Hero Points: 470
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: 2076
  • Hero Points: 126
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: 2076
  • Hero Points: 126
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: 111
  • 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: 2702
  • Hero Points: 336
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: 2076
  • Hero Points: 126
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: 2702
  • Hero Points: 336
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.