자동 완성 메뉴에 코드 조각 추가하기

코드조각 편집기에서 코드 또는 텍스트 조각을 추가하려면 다음과 같이 하세요:

  1. 환경설정 > Text Editor > Snippets 을 선택합니다.

    텍스트 편집기 환경설정의 코드조각 탭

  2. Group 에서 추가할 코드조각 유형을 선택합니다.
  3. Add 을 선택합니다.
  4. 트리거를 지정합니다. 트리거가 이미 사용 중인 경우 선택적 변형을 추가합니다. 코드를 작성할 때 제안 목록에 나타납니다. 또한 스니펫 카테고리에 따라 스니펫 편집기에서 텍스트 문자열이나 C++ 또는 QML 코드 구문을 지정할 수도 있습니다.

    코드조각에서 미리 정의된 변수를 사용할 수 있습니다.

코드 완성하기, 코드 완성하기, Qt Creator 변수 사용, , 완성, 코드조각도참조하세요 .

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.