코드를 괄호 또는 따옴표로 묶기

코드를 선택하고 다음 여는 문자 중 하나를 입력하여 선택 항목 끝에 일치하는 닫는 문자를 추가합니다:

  • (
  • {
  • [
  • <
  • "
  • '

일치하는 문자를 자동으로 삽입할지 여부를 지정하려면 환경설정 > Text Editor > Completion 으로 이동하여 Automatically Insert Matching Characters 에서 옵션을 선택합니다.

텍스트 편집기 환경설정의 완성 탭

또한 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.