Sublime Text: How to hide all code and show only c

2019-06-20 06:32发布

问题:

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?

回答1:

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).