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

rowbearto

  • Senior Community Member
  • Posts: 2336
  • 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: 3983
  • 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: 2336
  • 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: 2336
  • 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: 120
  • 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: 2801
  • 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: 2336
  • 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: 2801
  • 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.

jwiede

  • Senior Community Member
  • Posts: 120
  • Hero Points: 12
Re: Draw a vertical line between matching braces
« Reply #11 on: June 03, 2024, 05:25:28 PM »
Did this request ever receive any love?  I rely on it CONSTANTLY in VSCode & SublTxt, and while not the only reason, it's "one more cut" keeping me from using SE more often.

rowbearto

  • Senior Community Member
  • Posts: 2336
  • Hero Points: 132
Re: Draw a vertical line between matching braces
« Reply #12 on: June 03, 2024, 05:27:04 PM »
Yes it is now implemented in SlickEdit for a couple years now.

jwiede

  • Senior Community Member
  • Posts: 120
  • Hero Points: 12
Re: Draw a vertical line between matching braces
« Reply #13 on: June 03, 2024, 06:40:59 PM »
I was away for much of v26, basically all of v27 and the beginning of v28, so apparently missed it, sorry, but really glad to hear it.

I'm trying to understand what the different "Outline" options actually indicate.  For example, does "statements" include lines between all matching blocks in C/C++?  I looked at the help docs, but they provided little additional detail in this regard.  Is there a table anywhere which shows what the different "outline" settings provide and don't provide?

That said, I'm not a huge fan of "modes" for this, as Outline uses now.  I would much prefer selecting which receive and which do not (which are lines vs background coloring, which can receive highlighting when cursor/ptr are in their "region", and which always remain dim regardless). 

I tend to believe modes always suffer from "a few sizes fit none", and wind up internally table-driven anyway.  Might as well save effort and expose the attributes table in the UX from the start, and just offer presets equivalent to the modes (but also allow users to define their own presets) -- all per-language ideally.

If SE can get that far, I'll even hold off for two versions before asking for "rainbow sequence assignments" for categories.  ;D
« Last Edit: June 03, 2024, 06:42:46 PM by jwiede »