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 38964 - Code folding: disable for one-line code elements
Summary: Code folding: disable for one-line code elements
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords: PLAN
Depends on:
Blocks:
 
Reported: 2004-01-18 11:40 UTC by Daniel Blaukopf
Modified: 2016-07-10 18:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
TimeUnit as example of unnecessary one-line fold (58.94 KB, image/png)
2013-06-03 21:25 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Blaukopf 2004-01-18 11:40:51 UTC
If I have a comment that only takes up one line,
there is no benefit to having an option to fold
it. If I then collapse all folds, the one-line
comment disappears, whereas it could as well have
remained without damaging the readability of the code.

I suggest removing the code folding icon for
one-line code elements.
Comment 1 psuk 2004-03-23 18:30:00 UTC
Changing subcomponent to "code folding"
Comment 2 jeremyclarke 2009-07-31 18:03:57 UTC
+1 this is a very good idea. 

IMHO folded comments should always show the first line of the comment anyway because it doesn't take up any more space
and would be very helpful. It would also solve this problem almost inherently. That is being discussed in this ticket:
http://www.netbeans.org/issues/show_bug.cgi?id=157469

Comment 3 markiewb 2013-06-03 21:25:48 UTC
Created attachment 135294 [details]
TimeUnit as example of unnecessary one-line fold

See screenshot - TimeUnit as an example of unnecessary one-line fold
Comment 4 Martin Balin 2016-07-07 07:30:54 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:56:19 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)