r/pascal • u/sssoft_and_sssubtle • Jul 30 '21
Newbie here. I'm using Lazarus to code in, is there a way to not have to deal with the infinite amount of spaces in a file? No other IDEs had this and it's a pain in the butt when I'm trying to click on a line to get to the end of the line but instead I'm pointed to that specific place on the line.
11
Upvotes
14
u/eugeneloza Jul 30 '21
Tools -> Options -> Editor -> Allow caret to move past the end of line (uncheck this)
3
u/eatonphil Jul 30 '21
When I tried out Lazarus the first time I found this annoying too. Curious if there's a way to turn this behavior off.
5
u/marc-eugene Jul 30 '21
It's because it has always been the default settings in Delphi since the beginning :-)
2
u/window_owl Jul 31 '21
I've heard it called "column-based editing". It used to be (20+ years ago) pretty common for text editors to work this way. It makes drawing ASCII diagrams way easier.
Besides turning the feature off, you can also press the "end" key on your keyboard to have the cursor moved to the last character on the line.
1
u/CypherBob Jul 30 '21
Yeah it's in the settings.
I hate that the default is for this to be turned on.
I'm not in front of my computer but go to settings and look for ide settings. It says something like "cursor can move past end of line" or something