Take the 2-minute tour ×

Lets say we have code like this:

//description 1
code block 1 {

//description 2

code block 2 {

In sublime text, how to show only the comments and hide all the code?

share|improve this question
add comment

1 Answer

In a code like the one you've used as example, you can just "Fold All" the code.

Set the cursor outside any function then: Ctrl + K + Ctrl + 1

then you'll see only the comments and the function/struct signiatures (hidding the body).

share|improve this answer
What if the above code block is enclosed within script tag and present in a html page? I suppose fold all won't work in this way right? It will fold the entire tag itself. –  HumbleLearner Aug 17 '13 at 4:38
add comment

Your Answer


