I raised this two years ago but there’s been no activity.
If anyone else thinks this would be a nice simple addition to the IDE, please could you give it a thumbs up? It would make my daily coding just a little bit nicer.
@Paul_Lefebvre: Any chance this could get added to your “should be an easy win” list of features?
I note that even a Xojo employee (@Ricardo_Cruz) has given it a thumbs up!
Yeah - the title of that feature request is completely misleading, and the description doesn’t do a lot to refine it. A vertical ruler in the text editor context means line numbers. I had to read that request several times to understand what is being described.
That said, I’m not sure what the “official” phrase for that thing is. A line length guide, perhaps. It doesn’t actually do anything, but it tells you where a certain boundary is – often where the line wrap will happen during printing. Here’s how I would describe it:
Title: “Optional line length guide in code editor”
Description: “Add an optional line length guide to the code editor. This would be a light gray vertical line that can be placed at a certain width from the left hand edge of the editor, extending the entire height of the view – either an arbitrary distance, or the length of a certain number of characters in the code editor if the code editor font is a monospaced font. This gives the user a visual indication of how long each line of code is, for users who prefer to keep their lines below a certain length. It is a visual indicator only and would not enforce any code length restrictions.”
Everything is fun and jokes, until you want to do the same on different methods and ensure all of them will have the same comment line size. It isn’t super important, but if you care about these things… you won’t be able to just pick a random length on every method
It’s important also when you want to enforce some coding styling on a team.
A vertical ruler in a code editor sounded like a new way to measure programmer productivity by the “code-inch”…. “I had a great day at work today, I generated 27 code-inches.”
I submitted a somewhat related request to display the current line and column number in the IDE status bar (much like other IDEs and text editors do). This way you can see the current line number you are on even if you do not have the gutter line numbers turned on. Also, you can see what character you are on so it will help you limit your code lines to your desired number of characters (similar to the visual page guide). I feel this would make a very nice and simple enhancement to the IDE. If anyone is interested here is the feedback item:
Did you checked the CheckBox in Settings to get the line numbers ?
Thank you for the explanation.
I do not understand the use of a Colum number, but like said a manager: if you do not use it, you can throw it away. So if you do not have the use, don’t use it. That is what I’ve done with the lines number.
Where I am in the code ? I do not remember, so I read to know where I am (memory troubles)
I stopped using line number the day I stopped to use BASIC AppleSoft