More Normal Mode for Lazarus Editor lazarus / 9-Editor ---------------------------------------------------------------------- yay · 2024-03-18 17:50 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 · 2024-03-18 17:55 ide options --- editor --- Allow Caret to move past the end of line ---------------------------------------------------------------------- Thaddy · 2024-03-18 17:56 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. ---------------------------------------------------------------------- yay · 2024-03-18 18:07 Quote from: marcos-ebm on March 18, 2024, 06:55:50 pmide options --- editor --- Allow Caret to move past the end of line Thank you, that's exactly what I was looking for. Quote from: Thaddy on March 18, 2024, 06:56:02 pmYou 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 · 2024-03-18 18:26 But it has to do with writing proper code properly formatted. You forget about the majority in this world. ---------------------------------------------------------------------- RayoGlauco · 2024-03-18 18:26 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][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i something;            // comment 1something else;         // comment 2something more again;   // comment 3  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 key ---------------------------------------------------------------------- Martin_fr · 2024-03-18 19:02 Quote from: Thaddy on March 18, 2024, 07:26:01 pmBut 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 · 2024-03-18 19:07 Quote from: RayoGlauco on March 18, 2024, 07:26:50 pmI 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][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i something;            // comment 1something else;         // comment 2something more again;   // comment 3  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 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 · 2024-03-18 19:55 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.