IDE Window: Editor Macros

From Lazarus wiki
Revision as of 14:55, 27 June 2012 by Martin (talk | contribs)


  • Lazarus 1.0 supports only macros via keyboard
  • The Editor Macro window is not available in the released Lazarus 1.0. It is only present in SVN and trunk snapshots.

Editor Macros

Editor macros.png

Lazarus allows you to record any amount of macros. Using the Editor Macro window you can select which macro is currently used. You can also save macros by moving them to the project session, or the IDE config.

Display

The macros are displayed in 3 groups:

Recorded
Shows newly recorded macros. These macros are not saved, and will be lost if the IDE is closed
Project
Shows macros that are saved with the project session. Each project can have it's own set of macros.
If the project is configured not to save a session, then macros in this group are not saved, and will be lost when the project is closed.
IDE
Shows macros that are saved with the IDE config. These macros are available to all projects

Macros can be moved between Project and IDE

Macros can have a status icon:

Editor macros current.png
Current macro. This can be set using the "Select" button. This is the macro that is played, if using the keyboard shortcut.
Editor macros rec.png
This macro is currently being recorded.
Editor macros play.png
This macro is currently playing.
Editor macros broken.png
Broken macro. This indicates that the macro could not be loaded from the config. The macro can not be used. (It will be kept (in it's broken form) in the config)

Interface

  1. Todo

Using macros by keyboard

By Default the following 2 key shortcuts are set up:

  • Shift+Ctrl+P Play the current macro
  • Shift+Ctrl+R Start/Stop recording a new macro
During recording, the shortcut for play can be used to pause recording