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.

Bug 216829 - Allow folding for consecutive single-line comments
Summary: Allow folding for consecutive single-line comments
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 20:27 UTC by markiewb
Modified: 2016-07-16 16:23 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Example from another IDE (1.81 KB, image/png)
2012-08-13 20:31 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2012-08-13 20:27:10 UTC
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>
Comment 1 markiewb 2012-08-13 20:31:17 UTC
Created attachment 123065 [details]
Example from another IDE
Comment 2 Svata Dedic 2012-12-11 10:14:59 UTC
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.
Comment 3 Petr Somol 2013-01-22 08:58:56 UTC
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.
Comment 4 Martin Balin 2016-07-07 07:29:52 UTC
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
Comment 5 markiewb 2016-07-10 18:38:59 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)