Recent

Author Topic: Automatic spaces before and after symbols in Lazarus IDE  (Read 364 times)

AlexanderK

  • Newbie
  • Posts: 6
Automatic spaces before and after symbols in Lazarus IDE
« on: June 11, 2025, 09:10:19 pm »
Hello!
I want the editor to automatically insert spaces before and after symbols when I press enter and for this purpose I configured relevant options in Codetools->Space (see the screenshot attached). The preview shows exactly what I want, but there is no such effect when I come to use the editor. Any thoughts?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11450
  • Debugger - SynEdit - and more
    • wiki
Re: Automatic spaces before and after symbols in Lazarus IDE
« Reply #1 on: June 11, 2025, 09:16:02 pm »
when I press enter

Those settings only act on code completion.

That is.
- (Afaik) identifier completion (after dot, or ctrl-space), if this leads to symbols like := being added
- local variable creation. shift-ctrl-c
- procedure creation. shift-ctrl-c on methods in interface.
- code generated by creating events from object inspector



There also is Jedi code formatter... But I don't use it, so I can't help with that.

AlexanderK

  • Newbie
  • Posts: 6
Re: Automatic spaces before and after symbols in Lazarus IDE
« Reply #2 on: June 11, 2025, 09:31:20 pm »
Noted. Thank you anyway!

 

TinyPortal © 2005-2018