To record a text editing macro, select 工具 > Text Editing Macros > Record Macro or press Alt+( . To stop recording, select 工具 > Text Editing Macros > Stop Recording Macro or press Alt+) .
注意: The macro recorder does not support code completion.
To play the last macro, select 工具 > Text Editing Macros > Play Last Macro or press Alt+R .
To save the last macro, select 工具 > Text Editing Macros > Save Last Macro .
To assign a keyboard shortcut to a text editing macro, select 工具 > Options > Environment > Keyboard 。更多信息,见 Configuring Keyboard Shortcuts .
You can also use the
rm
locator filter to run a macro. For more information, see
Searching with the Locator
.
To view and remove saved macros, select 工具 > Options > 文本编辑器 > 宏 .