Lazarus

Miscellaneous => Suggestions => IDE/CodeTools => Topic started by: ArtLogi on January 07, 2016, 12:54:13 am

Title: Auto-closing brackets
Post by: ArtLogi on January 07, 2016, 12:54:13 am
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.
Title: Re: Auto-closing brackets
Post by: Martin_fr on January 07, 2016, 12:28:39 pm
You can record a macro:
- open bracket "("
- close bracket ")"
- cursor left

and assign it to the "(" key.

http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Macros
Title: Re: Auto-closing brackets
Post by: ArtLogi on January 07, 2016, 02:01:36 pm
Thank you I shall do that, until it someday hopefully is build in feature. :)

I actually need to record three macros one for each bracket { [ (