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?
By default you press Ctrl+K , then Ctrl+1 to fold all subroutines. Then, to unfold all I would press Ctrl+K then Ctrl+J . If this does not work for your file type / syntax, try Ctrl+K, Ctrl+2 and above to see if another folding level works for you.
You can add the auto-complete Intellisense feature for Kony UI, API, and SDK functions while working with Sublime Text from Visualizer. You must install the Ternjs for Sublime package to enable this feature.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With