이 페이지에서

코드 블록 강조 표시

블록 강조 표시는 함께 속한 코드의 일부를 시각적으로 구분합니다. 예를 들어 중괄호 안에 커서를 놓으면 중괄호로 묶인 코드가 강조 표시됩니다.

편집기에서 강조 표시된 코드 블록

블록 강조 표시를 사용하려면 환경설정 > Text Editor > Display 으로 이동하여 Highlight blocks 을 선택합니다.

코드 블록 접기

접는 마커를 선택하여 중괄호 안의 코드 블록을 접고 펼칩니다. 위 이미지에서 접는 마커는 줄 번호와 텍스트 창 사이에 있습니다.

접이식 마커를 표시하려면 환경설정 > Text Editor > Display 으로 이동하여 Display folding markers 을 선택합니다. 이 옵션은 기본적으로 활성화되어 있습니다.

텍스트 편집기 환경설정의 표시 탭

모든 댓글 블록 접기

모든 댓글 블록을 접으려면 Tools > C++ > Fold All Comment Blocks 로 이동합니다.

모든 댓글 블록을 펼치려면 Unfold All Comment Blocks 을 선택합니다.

일치하는 중괄호 애니메이션 적용

커서가 중괄호 위에 있으면 기본적으로 일치하는 중괄호에 애니메이션이 적용됩니다.

애니메이션을 끄고 블록과 중괄호만 강조 표시하려면 환경설정 > Text Editor > Display 으로 이동하여 Animate matching parentheses 을 선택 취소합니다.

코드 블록 간 이동

키보드 단축키를 사용하여 코드 블록 안과 블록 사이를 이동할 수 있습니다:

  • 블록 끝으로 이동하려면 Ctrl+]를 선택합니다.
  • 블록 시작으로 이동하려면 Ctrl+[]를 선택합니다.

커서 위치에서 블록의 끝 또는 시작까지 줄을 선택하려면 각각 Ctrl+Shift+]Ctrl+Shift+[ 를 선택합니다.

방법: 코드 수정수정 모드도참조하세요 .

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.