このページでは

テキスト編集マクロの記録

コードエディタでファイルを開いているとき、キーボード操作のシーケンスをマクロとして記録できます。その後、マクロを再生してその操作を繰り返し実行できます。最新のマクロを保存し、実行用のキーボードショートカットを割り当てたり、ロケーターから実行したりできます。

マクロの記録

テキスト編集マクロを記録するには:

  1. Tools 」>「Text Editing Macros 」>「Record Macro 」に移動するか、Alt+[ キーを押します。
  2. キーボードのキーを選択します。
  3. 記録を停止するには、[Tools ] > [Text Editing Macros ] >[ Stop Recording Macro ] を選択するか、Alt+] キーを押します。

注: マクロレコーダーは コード補完をサポートしていません。

マクロの再生

最後のマクロを実行するには:

  • Tools 」>「Text Editing Macros 」>「Play Last Macro 」の順に選択します。
  • Alt+R を選択します。
  • ロケーターに「rm 」と入力します。

マクロの保存

最後のマクロを保存するには、Tools >Text Editing Macros >Save Last Macro に移動します。

保存されたマクロを表示および削除するには、[Preferences ] > [Text Editor ] > [Macros] の順に選択します。

「テキストエディタ」環境設定の「マクロ」タブ

マクロにキーボードショートカットを割り当てる

テキスト編集マクロにキーボードショートカットを割り当てるには、Preferences >Environment >Keyboard に移動します。

キーボードショートカットの割り当て」、「Luaスクリプトの作成」、「コードの編集方法」、および「ロケーターを使用したナビゲーション も参照してください

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.