Recent

Author Topic: [SOLVED] Autocomplete - adding spaces around assignment operator  (Read 636 times)

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Greetings!

Using the forum's search function, I found this topic about adding spaces around the assignment operator when using autocomplete, but the web-page referenced in the answer doesn't appear to exist anymore, nor is there a copy on archive.org.

In case the Subject isn't clear, say I've typed:
Code: Pascal  [Select][+][-]
  1. Label1.
then the autocomplete list automatically displays, then I choose "Caption" then hit Enter.  What happens is this:
Code: Pascal  [Select][+][-]
  1. Label1.Caption:=
but I want it to do this
Code: Pascal  [Select][+][-]
  1. Label1.Caption :=
I don't like the 'rushed developer' style of smashing everything together -- I like spaces around things.

I've tried adjusting this in the JCF Format settings, but it doesn't appear to affect normal editor use.

Is there some way to adjust this?  I cannot find it in the Editor preferences.

Thanks!  :)
« Last Edit: June 01, 2022, 02:09:39 am by willbprog9933 »
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9868
  • Debugger - SynEdit - and more
    • wiki
Re: Autocomplete - adding spaces around assignment operator
« Reply #1 on: June 01, 2022, 02:03:43 am »
Tools > Options > codetools > space

And then before/after "symbol"
« Last Edit: June 01, 2022, 02:07:04 am by Martin_fr »

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
[Solved] Re: Autocomplete - adding spaces around assignment operator
« Reply #2 on: June 01, 2022, 02:08:59 am »
Tools > Options > codetools > space

Thanks Martin_fr,

I don't seem to have that menu option.  I neglected to mention I'm running Lazarus 2.2.2 on macOS.  Ah!  There it is in Preferences.  I did use the search feature in Preferences but I guess I was searching for the wrong thing.

Thank you!  :D
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

 

TinyPortal © 2005-2018