This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Allow folding for consecutive single-line comments (in java projects) <code> // first line of comment // second line of comment // third line of comment </code> fold into <code> // first line of comment [...] </code>
Created attachment 123065 [details] Example from another IDE
Petre, could you please evaluate this RFE ? Consecutive line comment often act very similar to block comment, which we now fold. But how the appearance should look like ? For block comments, other RFEs talk about displaying the heading line (e.g. folded javadoc comments) etc. For example IntelliJ allows to fold consecutive line comments, but displays only //... folded placeholder for all of them.
Sounds like a good idea to me. Here the solution looks straightforward, as suggested in Comment #2: consecutive single-line comments can be replaced by the "//..." placeholder in a rectangle as is common in NB, with the preview on-mouse-over pop-up to show what is folded.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
Still valid in 8.2 dev Product Version: NetBeans IDE Dev (Build 201607100002)