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 72758 - Code folding for pre-processor blocks
Summary: Code folding for pre-processor blocks
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: Fragmentation (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Karol Harezlak
URL:
Keywords:
: 71364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-17 07:45 UTC by ieising
Modified: 2012-08-20 08:19 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ieising 2006-02-17 07:45:57 UTC
Hi,

It would be great if the inactive preprocessor blocks would be folded in
addition to use a different color-scheme.

Iwan
Comment 1 ieising 2006-02-17 07:48:30 UTC
This was obviously not a defect but I think an enhancement of the preprocessor
editing.
Comment 2 Lukas Hasik 2006-02-17 09:41:42 UTC
it can be used only when you are creating the PP block with menu action

you'll have to type it by yourself when you're writing PP blocks by hand
Use following syntax:
//<editor-fold>
        //#ifdef DefaultConfiguration 
//#     ...your code here
//# //</editor-fold>

IMO, I don't think it is useful. There is limitation that editor-fold cannot be
on the same line like preprocessor directive. 

Leaving for deeper evaluation by developers.

It could be useful when everything could be on the same line like
//#ifdef DefaultConfiguration <editor-fold> 

Is there any different way how to fold it? Like class or method in editor?
Comment 3 Lukas Hasik 2006-06-23 14:34:58 UTC
moving to mobility component
Comment 4 Lukas Hasik 2007-01-05 10:20:16 UTC
*** Issue 71364 has been marked as a duplicate of this issue. ***