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

牧云@^-^@ 提交于 2019-12-10 13:19:49

问题


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



来源:https://stackoverflow.com/questions/18265047/sublime-text-how-to-hide-all-code-and-show-only-comments

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!