Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fold comments in eclipse

I have written a lot of javadoc comments in my class and each function has a large description. When I open the class it is inconvenient to scroll down with all those comments in place.

Is there any shortcut for folding all the comments? I tried with Ctrl+Shift+/ it didn't work :(.

Edit: Most of the keyboard shortcuts don't work if there is any error in the workspace. I have no errors.

like image 777
NewUser Avatar asked Feb 23 '14 13:02

NewUser


1 Answers

For those (like me) who came here looking for comment folding in C++ CDT, there is another option:

Window -> Preferences -> C/C++ -> Editor -> Folding I checked "Comments" under "Initially fold these region types"

This will collapse all comments by default when you open a file in CDT.

like image 172
wizurd Avatar answered Sep 24 '22 04:09

wizurd