CommonThread

Tip: TextMate folding

Posted by anthony crumley, Wed Oct 31 06:31:00 UTC 2007

TextMate allows code to be folded or hidden at logical levels, eg. class, method, if, block, etc. Folding can be toggled by clicking the arrows in the gutter or by pressing F1 while the cursor is in a foldable section. This can be somewhat helpful at times but my favorite folding technique is folding all the code at a certain level. This is done by pressing option-apple-level where level is a number representing the logical levels of code in the file. For instance, option-apple-2 will fold or unfold all the methods in a controller class. Option-apple-0 toggles folding of every section in the file.

Filed Under: | Tags:

Comments

  1. Adrianne Livingston 11.12.08 / 16PM
    72rwxt8e2asfs5x8

Have your say

A name is required. You may use HTML in your comments.




Recent Articles

Categories