Fold / Collapse the except code section in sublime text 2

前端 未结 5 2181
清酒与你
清酒与你 2020-12-23 00:02

Is there any plugin or shortcut to hide all except code section in sublime text 2?

I need to fold all except section at a time , Not fold one section at a time.

5条回答
  •  青春惊慌失措
    2020-12-23 01:06

    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.

提交回复
热议问题