The reason i (sometimes) want to hide the javadoc text is because in 3rd party apps it kinda confuses me. The fact that when i hover over an object the javadoc for that object appears is enough for me Solutions?
LE I have just found somewhat of a workaround which is enough (a collapse all comments command). But for the sake of education, is there anyway to completely hide (collapsing isn't completely hiding you know) the javadocs and OR the comments ?
Enabling 'Folding' in the preferences dialog lets you use the '+' and '-' buttons next to the line numbers to hide comments.
To fold comments go on 'Window' >> 'Preferences' and then in the tree, locate 'Java' >> 'Editor' >> 'Folding'. Select 'Enable Folding' and check 'Comments and Header Comments'.
Add a Javadoc using automatic commentsType /** before a declaration and press Enter . The IDE auto-completes the doc comment for you.
PDT allows you to quickly and easily comment and uncomment code by selecting a line or a block of text and tagging it as a comment. Comments can be added to single lines of code (Ctrl + /) or blocks of code (Ctrl + Shift + /).
If you are using eclipse, you can "fold" comments by going to
Window->Preferences
And then in the tree, find:
Java->Editor->Folding
In there you can choose to Enable Folding, and then ensure that Comments and HeaderComments are checked for initally being folded.
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