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

2019-06-20 06:58发布

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条回答
何必那么认真
2楼-- · 2019-06-20 07:14

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

查看更多
登录 后发表回答