Recent

Author Topic: Auto-closing brackets  (Read 3861 times)

ArtLogi

  • Full Member
  • ***
  • Posts: 144
Auto-closing brackets
« 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.
« Last Edit: January 07, 2016, 12:55:52 am by ArtLogi »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5699
    • wiki
Re: Auto-closing brackets
« Reply #1 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

ArtLogi

  • Full Member
  • ***
  • Posts: 144
Re: Auto-closing brackets
« Reply #2 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 { [ (