숭고한 텍스트 2에서 코드 제외 섹션 접기 / 축소
숭고한 텍스트 2에서 코드 섹션을 제외한 모든 것을 숨기는 플러그인이나 바로 가기가 있습니까?
한 번에 한 섹션을 접지 않고 한 번에 섹션을 제외하고 모두 접어야합니다.
고마워 ~
줄 번호 위로 마우스를 가져 가면 화살표가 표시됩니다.이 중 하나를 클릭하면 코드가 접히거나 접 힙니다.
모두 축소 / 확장하려면 편집-> 코드 접기로 이동하여 "모두 접기"또는 "모두 펼치기"를 선택하면됩니다.
다른 답변 외에도 수준에 따라 접을 수도 있습니다. 예를 들어 fold의 기본 키 바인딩을 살펴보십시오.
접기 키 바인딩을 검색합니다.
예를 들어 foldall 또는 접기 수준 1은 누른 상태 Ctrl에서 시퀀스 k를 누른 다음 1:
Or folding level 2 would be to hold Ctrl followed by pressing the sequence k and then 2:
Or unfolding all would be would be to hold Ctrl followed by pressing the sequence k and then 0 or in my defaults I also seem to have it bound to the letter j:
Warning.
Pressing Ctrl+k twice will remove a line or a count of lines. But not really cause you can put them back one by one by Ctrl+u
One thing you can do is select the Except code bloc using a regular expression, for instance using except(.|\n)*?raise.*
in your case. You can then select "Find all" in the search bar, then Edit->Code Folding -> Fold .
Windows shortcut : Ctrl-Shift-[
Mac shortcut: Cmd-Alt-[
All the Except bloc will then be collapsed.
나는 이것이 오래된 질문이라는 것을 알고 있지만 여전히 검색 결과에서 높게 나타나고 OP가 원하는대로 대답하는 것은 없습니다.
- 숨기고 싶지 않은 코드를 선택하십시오.
- 코드를 선택> "선택 반전"- "선택"을 사용 않는 대신 숨겨하려면
ctrl + shift + [
또는Command + Option + ]
을 사용 하여 선택 항목 축소
이렇게하면 원래 선택한 코드 만 표시됩니다.
Fold 및 UnFold 기능 또는 MAC 전용 클래스 기반 :
* Fold: command + K, command + 1
* UnFold: command + K, command + J
참고 URL : https://stackoverflow.com/questions/18819920/fold-collapse-the-except-code-section-in-sublime-text-2
'IT story' 카테고리의 다른 글
이 두 div를 나란히 배치하는 방법은 무엇입니까? (0) | 2020.09.08 |
---|---|
PostgreSQL ROLE (사용자)가없는 경우 생성 (0) | 2020.09.08 |
테스트를위한 Square Retrofit 서버 모의 (0) | 2020.09.08 |
MVC4 HTTP 오류 403.14-금지됨 (0) | 2020.09.08 |
jQuery select2 선택 태그의 값을 얻습니까? (0) | 2020.09.08 |