Author Topic: Multiple Vertical Lines ...  (Read 2674 times)

rgloden

  • Senior Community Member
  • Posts: 169
  • Hero Points: 5
Multiple Vertical Lines ...
« on: February 11, 2018, 08:54:44 PM »
I would like to be able to display multiple customizable verticals lines.  In my case the first line would be set to column 80 as a suggestion and then a second line at column 132, which for our coding standards is a hard stop.

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Multiple Vertical Lines ...
« Reply #1 on: February 12, 2018, 05:33:15 PM »
Tools > Options > General > Vertical line columns (I have mine set to "80 132", as a matter of fact).

To enforce the hard-stop at 132, you could turn on the truncation option.
Document > C/C++ Options > General > Trunctation > Line Length [132]

Another way to partially enforce the hard-stop at 132 would be to enable word wrap at column 132, it depends on what you might find more annoying (text wrapping, or just not being allowed to type or paste beyond that column at all).

rgloden

  • Senior Community Member
  • Posts: 169
  • Hero Points: 5
Re: Multiple Vertical Lines ...
« Reply #2 on: February 13, 2018, 08:48:38 PM »
Wow ... thanks ...