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 217196 - Capricious code folding behaviour (don't fold one line statements)
Summary: Capricious code folding behaviour (don't fold one line statements)
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 07:39 UTC by dancchamm
Modified: 2012-08-24 08:18 UTC (History)
0 users

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 dancchamm 2012-08-22 07:39:01 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02

Code folding seems rather capricious (particularly in PHP) - while editing, the code folding behaviour kicks in, and I keep having to type CTRL-Q to find my editing point.
Also it seems unnecessary to fold a single statement following an if() statement.  Maybe some extra options to configure this behaviour (e.g. only fold blocks more than n lines long?)
Comment 1 Ondrej Brejla 2012-08-24 08:18:13 UTC
Not sure what you are complaining about...that we fold onle line statements? It's an enhancement. And the first one, what mean "while editing, the code folding behaviour kicks in"? That  your code is folded automatically while you are editting? It's not a PHP problem, it's a problem of whole infrastructure. Java folding behaves similarly.