IT story

숭고한 텍스트 2에서 코드 제외 섹션 접기 / 축소

hot-time 2020. 9. 8. 22:01
반응형

숭고한 텍스트 2에서 코드 제외 섹션 접기 / 축소


숭고한 텍스트 2에서 코드 섹션을 제외한 모든 것을 숨기는 플러그인이나 바로 가기가 있습니까?

한 번에 한 섹션을 접지 않고 한 번에 섹션을 제외하고 모두 접어야합니다.

고마워 ~

여기에 이미지 설명 입력


줄 번호 위로 마우스를 가져 가면 화살표가 표시됩니다.이 중 하나를 클릭하면 코드가 접히거나 접 힙니다.

여기에 이미지 설명 입력

여기에 이미지 설명 입력

모두 축소 / 확장하려면 편집-> 코드 접기로 이동하여 "모두 접기"또는 "모두 펼치기"를 선택하면됩니다.

여기에 이미지 설명 입력


다른 답변 외에도 수준에 따라 접을 수도 있습니다. 예를 들어 fold의 기본 키 바인딩을 살펴보십시오.

Subblime 키 바인딩 기본값

접기 키 바인딩을 검색합니다.

숭고한 접기 키 바인딩 검색

예를 들어 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가 원하는대로 대답하는 것은 없습니다.

  1. 숨기고 싶지 않은 코드를 선택하십시오.
  2. 코드를 선택> "선택 반전"- "선택"을 사용 않는 대신 숨겨하려면
  3. 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

반응형