Recent

Author Topic: More Normal Mode for Lazarus Editor  (Read 1326 times)

yay

  • New Member
  • *
  • Posts: 24
More Normal Mode for Lazarus Editor
« on: March 18, 2024, 06:50:18 pm »
Hello all,

Is there a way to—for lack of a better word—make the text editor within Lazarus act like a more normal text editor? This is specifically in regard to the carat, and how it floats around in white space where nothing has been written.

Thank you.

marcos-ebm

  • New Member
  • *
  • Posts: 49
Re: More Normal Mode for Lazarus Editor
« Reply #1 on: March 18, 2024, 06:55:50 pm »
ide options --- editor --- Allow Caret to move past the end of line
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

Thaddy

  • Hero Member
  • *****
  • Posts: 14625
  • Sensorship about opinions does not belong here.
Re: More Normal Mode for Lazarus Editor
« Reply #2 on: March 18, 2024, 06:56:02 pm »
You have seem to have missed the point that for example commenting in an understandable way becomes a lot more readable. I would not want to read your code when that feature was missing.
( I suppose you do not comment your code at all )
Btw all industry standard code editors support this: may be the new normal, yay.
Get your paragimn right.
« Last Edit: March 18, 2024, 07:04:33 pm by Thaddy »
bitrate is always calculated like this:sample rate * bitdepth * number of channels.

yay

  • New Member
  • *
  • Posts: 24
Re: More Normal Mode for Lazarus Editor
« Reply #3 on: March 18, 2024, 07:07:05 pm »
ide options --- editor --- Allow Caret to move past the end of line

Thank you, that's exactly what I was looking for.

You have seem to have missed the point that for example commenting in an understandable way becomes a lot more readable. I would not want to read your code when that feature was missing.
( I suppose you do not comment your code at all )
Btw all industry standard code editors support this: may be the new normal, yay.
Get your paragimn right.

I don't see what this has to do with my ability to write comments at all.

Thaddy

  • Hero Member
  • *****
  • Posts: 14625
  • Sensorship about opinions does not belong here.
Re: More Normal Mode for Lazarus Editor
« Reply #4 on: March 18, 2024, 07:26:01 pm »
But it has to do with writing proper code properly formatted. You forget about the majority in this world.
bitrate is always calculated like this:sample rate * bitdepth * number of channels.

RayoGlauco

  • Full Member
  • ***
  • Posts: 183
  • Beers: 1567
Re: More Normal Mode for Lazarus Editor
« Reply #5 on: March 18, 2024, 07:26:50 pm »
I think Thaddy means that vertically aligned comments can be easier to read (and easier to write if you can go past the end of line):
Code: Pascal  [Select][+][-]
  1. something;              // comment 1
  2. something else;         // comment 2
  3. something more again;   // comment 3
  4.  

Edit: I like to be able to go beyond the end of the line, and I can always go to the end of the line directly by pressing the <END> key
« Last Edit: March 18, 2024, 07:35:48 pm by RayoGlauco »
To err is human, but to really mess things up, you need a computer.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9991
  • Debugger - SynEdit - and more
    • wiki
Re: More Normal Mode for Lazarus Editor
« Reply #6 on: March 18, 2024, 08:02:05 pm »
But it has to do with writing proper code properly formatted. You forget about the majority in this world.
I must be an extraterrestrial then. I can write well formatted code, with comments and all. And I have the caret past EOL switched OFF.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9991
  • Debugger - SynEdit - and more
    • wiki
Re: More Normal Mode for Lazarus Editor
« Reply #7 on: March 18, 2024, 08:07:35 pm »
I think Thaddy means that vertically aligned comments can be easier to read (and easier to write if you can go past the end of line):
Code: Pascal  [Select][+][-]
  1. something;              // comment 1
  2. something else;         // comment 2
  3. something more again;   // comment 3
  4.  

Edit: I like to be able to go beyond the end of the line, and I can always go to the end of the line directly by pressing the <END> key

But that only matters if you position the caret by mouse click. And that is slower than keyboard, since you have to move your hand over to the mouse, and then reposition on the keyboard.

Also - as another option - the tab key can get you quickly below the comment above (using "smart tabs").

Or you can use https://wiki.freepascal.org/Editor_Macro_Column_Align_Source
Which means, you can quickly re-align if the length of some lines changed.

And if you really want, you can write a macro that positions the caret directly under the comment above (even already adds the //). And assign this macro to a key. Then it is a single keypress for aligned comments. Beats all else.

RayoGlauco

  • Full Member
  • ***
  • Posts: 183
  • Beers: 1567
Re: More Normal Mode for Lazarus Editor
« Reply #8 on: March 18, 2024, 08:55:53 pm »
Everyone has a way of doing things that works well for them. It's okay for the editor to let you get the same result in different ways.

This reminds me of when I wrote code in Turbo Pascal, only with the keyboard, because my PC didn't have a mouse.
To err is human, but to really mess things up, you need a computer.

 

TinyPortal © 2005-2018