このページでは

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

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

マクロの記録

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

  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 に進みます。

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

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

テキスト編集マクロにキーボードショートカットを割り当てるには、環境設定>Environment >Keyboard に進みます。

キーボードショートカットを割り当てる」、「Luaスクリプトを作成する」、「How To: Edit Code」、「ロケーターでナビゲートする」も参照してください

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.