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.
In NetBeans IDE 6.5 beta (in truth, this was also present in milestone 1) when I have a php file with a class definition, upon starting to write a new method or any block within the class definition, using the opening "{" char, all folded folds get unfolded, which makes editing kind of annoying at times. I have tried this ina file with some folded functions and strting to write a new function, the folds seem to stay folded in this case. This seems to only happen when I'm starting to write a new block of code within a class definition. Sample code is below, try putting it in a new file, fold everything and remove the closing curly bracer in a statement in a function or in the class' method and see what happens. function cookies_for_everyone() { $ingeniousMessage = "Not doing anything much, really"; for ($i = 1; $i < 3; $i++) { echo $ingeniousMessage; } } function only_doughnuts_left() { if (true) { return false; } } class ReallyJustADemo { function i_am_a_method() { if (true) {} } }
I confirm this; you can test it also having netbeans to automatically fold Javadoc comments in a file with a lot of comments and then try to write something like "function test() {" and you'll see all the Javadoc comments unfolded until you hit return and the closing "}" is automatically added.
I have done many improvements in this area. This is not still perfect, but much better. Please reopen if you find out case, when it is broken.
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/e552ea7c50df User: Petr Pisl <ppisl@netbeans.org> Log: #144776 - Folds unfold when a code block is started using a curly bracer Not perfect fix, but probably the best for NB 6.5