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.
/* public void foo () { for (int i = 0; i< 10; i++) { System.out.printline ("hello"); } } */ I would expecte to have a fold around this but there is none.
...because the commented method is no longer in java source hierarchy. We will provide user defined folds in the promo D
Changing subcomponent to "code folding"
Output should look like: /*... public void foo () { ...*/ not: /*...*/
Obsolete target milestone, changed to TBD. Please re-evaluate.
*** Issue 53404 has been marked as a duplicate of this issue. ***
Labelled with [65cat] to draw attention on his issue. Also line comments should be considered: public void foo () { // for (int i = 0; i< 10; i++) { // System.out.println ("hello"); // } for (int i = 0; i< 10; i++) { System.out.println ("world"); } }
I do not think comments folding should be done on a per-language basis: -folding of multi-line (block) comments can be done for all languages without much support from the language (except setting primary token category to "comment", which needs to be done anyway) -folding of multiple line comments may require that the language lets the infra now somehow that a comment token represents a line comment, e.g. token id == LINE_COMMENT or a particular secondary category is set.
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