Tilføj kodestykker til menuen til automatisk udfyldning
Sådan tilføjer du kode- eller tekstuddrag i uddragseditoren:
- Vælg " Preferences " > " Text Editor " > " Snippets".

- I " Group" skal du vælge den type uddrag, du vil tilføje.
- Vælg " Add".
- Angiv en trigger. Hvis triggeren allerede er i brug, kan du tilføje en valgfri variant. De vises på listen over forslag, når du skriver kode. Angiv også en tekststreng eller en C++- eller QML-kodekonstruktion i snippet-editoren, afhængigt af snippet-kategorien.
Du kan bruge foruddefinerede variabler i kodestykker.
Se også Komplet CMake-kode, Komplet kode, Brug af variabler i " Qt Creator ", Autocompletion, Nim og Snippets.
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.