Miscellaneous Lazarus IDE Editor Macros
Macro | Description |
---|---|
apostrophe.pas | appends the closing apostrophe and places the cursor between the two apostrophes. |
parentheses.pas | appends the closing parentheses and places the cursor between the two parentheses. |
breakline_string.pas | simplifies the process of breaking an existing string into two lines |
backspace.pas | improved backspace, to handle apostrophes and parentheses |
Activate Editor Macros
Lazarus IDE > Package > Install/Unistall Packages...
In 'Available for Installation' list choose these packages
- pascalscript
- EditorMacroScript
- Save and rebuild IDE
Adding Macros
Lazarus IDE > View > Editor Macros
- Click in 'Record', press one key and stop macro.
- Move the recorded macro to IDE or Project.
- Click in 'Edit', replace the code of macro script for the content of .pas file in repository and save.
- Click 'Edit Key' to choose the shortcut.
Contributions are welcome, submit a pull request :)