Well I hate brackets in any form or shape in coding or in calculators, I were a moment in heaven when I did found auto-closing brackets (which are the best invention since sliced bread) from FPC ansi IDE, then I spiritually dropped below the ground when noticing that the feature is missing from the Lazarus (where I'll jump soon when I get few more things ironed to my head in ansi IDE).
So the code is already here, it only need to be copied from IDE to other.
I would do it myself, but as a young padawan I shall not play with the force.