Jump to content
Mr. E

Editor: name of this vertical line

Recommended Posts

I have always been unable to find an answer to the following:
The vertical line I point to in the image:

381622336_simplequestionaboutideeditor.thumb.png.0c06e554f3e59832ed16a69e16e6248b.png


Does it have a name?
Can its horizontal position (width or column) be changed?

 

Is it correct for what I think it is?
When using Format Code (Ctrl-D), it makes all the code stay inside the limit of that column.

 

Thanks in advance.

Share this post


Link to post

The editor right margin. It is configurable:

 

Tools->Options->User Interface->Editor->Display, in "Margin in gutter" section, "Right margin" 

  • Thanks 1

Share this post


Link to post
Posted (edited)

Thank you @JonRobertson

Using the words you provided, I managed to find the section to adjust/wrap the code to more than 80 columns when formatting with Ctrl-D

Tools -> Options -> Formatter -> Delphi -> Line breaks -> Right margin.

I changed it from 80 to 120 to test it and it does work.

image.thumb.png.48c0a3ef586f678189cd4b4ae6851e88.png

 

image.thumb.png.3c77b56e34a8393ea20b61c064217c0f.png

 

I also discovered that searching for the words "right margin" does not locate the "Formatter" section I was looking for.

image.png.966dd9ada20657716e7638d96f991333.png

 

This other post ("Change the scroll width of the Delphi IDE Editor window"), complete what I needed to adjust the code formatting.

Quote

..I can find two separate setting in the Delphi (XE) IDE that affect the editor width:

1) the right margin setting under [Editor Options][Display]

2) the right margin setting under [Formatter][Delphi][Line Breaks]

The 1st option only seems to affect the width of the visible right margin in the editor, the 2nd option affects the wrap width of the auto-formatter. ...


 

 

Edited by Mr. E

Share this post


Link to post

Several of us have a set value of 120 points. It depends on the resolution of the monitor. At my 3440 x 1440 it's fine.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×