BTW I'm using 8.2. The title of this thread is in reference to versions later than this because I assume this is an issue for 8.2, and am wondering if this issue has been corrected in later versions.
On Mon, 24 Dec 2018 at 10:24, Owen Thomas <[email protected]> wrote: > Hi. > > I'm trying to insert a code fold in a Java comment because I am hoping > that using this feature will be a convenience that help obscure bits of the > code (and comments) that one wouldn't wish to copy to another document > using ctrl-c for instance. Have I understood the use of code folding > correctly? > > Anyway, I try to inset a fold into my comment. It is bounded by the lines: > > //<editor-fold defaultstate="collapsed" desc="comment"> > //</editor-fold> > > When I try this, I do not see the lines I wish to be obscured disappear, > nor do I see a fold control ([+]) appear in the left margin of the editor > window. > > Is this a known issue with Netbeans 8.2, and if so, has it been solved in > later versions? Do I need to turn a setting on somewhere? I've closed and > re-opened the Java file, and this makes no difference. Because the fold is > in a comment, the fold would be nested within the fold that appears for the > whole comment (fold controls for the whole comment do appear). Is this a > bug? > > Help appreciated... > > Thanks, > > Owen. >
