Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-08

How to get space before auto-inserted assignment?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I am used to having whitespace between names and operators, but Lazarus insists on putting := directly after a property when it autocompletes.
So I get Canvas.Brush:=
instead of Canvas.Brush :=
Which is what I want.
It is annoying to get unwanted help which every time has to be corrected....
Presumably this is an IDE setting, but which?

The editor settings is quite a maze to navigate so I would appreciate a hint on where to look.
I am using Lazarus 2.0.4 on Windows 7.

Bo Berglund Developer in Sweden

Reply by email

Howard Page-Clark
to Bo Berglund
Bo Berglund wrote 13 lines
I am used to having whitespace between names and operators, but Lazarus insists on putting := directly after a property when it autocompletes. So I get Canvas.Brush:= instead of Canvas.Brush := Which is what I want. It is annoying to get unwanted help which every time has to be corrected.... Presumably this is an IDE setting, but which? The editor settings is quite a maze to navigate so I would appreciate a hint on where to look. I am using Lazarus 2.0.4 on Windows 7.

Tools->Options dialog

In the treeview select the Codetools node, and Space page

"Insert space in front of" the Symbol checkbox must be checked.

Reply by email

Bo Berglund
to Howard Page-Clark
Howard Page-Clark wrote 10 lines
> Presumably this is an IDE setting, but which? > > I am using Lazarus 2.0.4 on Windows 7. Tools->Options dialog In the treeview select the Codetools node, and Space page "Insert space in front of" the Symbol checkbox must be checked.

Thanks! Now much better...

Bo Berglund Developer in Sweden

Reply by email