Přidání úryvků kódu do nabídky automatického doplňování
Chcete-li přidat úryvky kódu nebo textu v editoru úryvků:
- Vyberte možnost „ Preferences “ > „ Text Editor “ > „ Snippets “.

- V části „ Group “ vyberte typ úryvku, který chcete přidat.
- Vyberte možnost „ Add “.
- Zadejte spouštěč. Pokud je spouštěč již používán, přidejte volitelnou variantu. Ty se zobrazí v seznamu návrhů při psaní kódu. V editoru úryvků také zadejte textový řetězec nebo konstrukci kódu v jazyce C++ či QML, v závislosti na kategorii úryvku.
Ve fragmentu kódu můžete použít předdefinované proměnné.
Viz také Doplňování kódu CMake, Doplňování kódu, Použití proměnných „ Qt Creator “, Doplňování, Nim a Úryvky.
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.