Recent

Author Topic: [SOLVED] Comment continuation?  (Read 381 times)

EganSolo

  • Sr. Member
  • ****
  • Posts: 302
[SOLVED] Comment continuation?
« on: April 11, 2025, 09:47:55 pm »
I may be losing my mind or confusing IDEs ...
I thought there was a way to continue commenting by pressing Ctrl+Enter or something like that, no?
In case what I said doesn't make sense, consider this simple example:
Code: Pascal  [Select][+][-]
  1. //This is a comment. I wish I could press Ctrl+Enter after the period, and have the next line start with two slashes ...  
  2.  

Thoughts?
« Last Edit: April 11, 2025, 11:50:04 pm by EganSolo »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11171
  • Debugger - SynEdit - and more
    • wiki
Re: Comment continuation?
« Reply #1 on: April 11, 2025, 10:07:50 pm »
Menu: Tools > Options
Page: Editor > Tab and indent

There is a section "slash", and if you enable it, then comments will be continued when you press enter.

You can set up to continue, only if they match a certain pattern, or specific conditions.

EganSolo

  • Sr. Member
  • ****
  • Posts: 302
Re: [SOLVED] Comment continuation?
« Reply #2 on: April 11, 2025, 11:51:49 pm »
Thanks, Martin! I'm sane again!
Incidentally, I've had to choose the option "Extend if matched or not matched to make it work...

If you're knew to Laz IDE and are unfamiliar with the editor's options, you'll find it under the main Tools menu. I've added a snapshot of the area where you can enable this feature since it's tucked away and is easy to miss (at least for me!) ...
« Last Edit: April 11, 2025, 11:58:24 pm by EganSolo »

 

TinyPortal © 2005-2018