オートコンプリートメニューにコードスニペットを追加する
スニペットエディタにコードやテキストのスニペットを追加するには:
- 「Preferences 」>「Text Editor 」>「Snippets 」を選択します。

- 「Group 」で、追加するスニペットの種類を選択します。
- 「Add 」を選択します。
- トリガーを指定します。トリガーがすでに使用されている場合は、オプションでバリアントを追加します。これらは、コードを入力する際に候補リストに表示されます。また、スニペットのカテゴリに応じて、スニペットエディタでテキスト文字列、または C++ もしくは QML のコード構文を指定します。
スニペット内では、事前定義された変数を使用できます。
「CMake コードの補完」、「コードの補完」、「Qt Creator 変数の使用」、「補完」、「Nim」、および「スニペット」も参照してください 。
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.