Lazarus

Using the Lazarus IDE => Editor => Topic started by: willbprog9933 on June 01, 2022, 01:59:01 am

Title: [SOLVED] Autocomplete - adding spaces around assignment operator
Post by: willbprog9933 on June 01, 2022, 01:59:01 am
Greetings!

Using the forum's search function, I found this topic (https://forum.lazarus.freepascal.org/index.php/topic,23366.0.html) 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!  :)
Title: Re: Autocomplete - adding spaces around assignment operator
Post by: Martin_fr on June 01, 2022, 02:03:43 am
Tools > Options > codetools > space

And then before/after "symbol"
Title: [Solved] Re: Autocomplete - adding spaces around assignment operator
Post by: willbprog9933 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
TinyPortal © 2005-2018