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.
At the minute, if you type blocks of code on the next line rather than on the same line*, the code folds to the line after the statement**. It would be useful/handy to have an option in the preferences to save space by allowing for code to fold to the same line as the code-block header rather than on the next line. * void someMethod() { } as opposed to: void someMethod() { } ** void someMethod() { ... } rather than void someMethod() { ... }
This feature should be implemented by individual fold providers. In general the option could allow to include whitespaces preceding the actual fold start to be included in the fold. Requires a SPI so that fold provider can introduce its options gui OR an SPI to manifest provider's capabilities, so that common gui can disable unsupported optons and folding defaults can be formed for the mime type. Utility can be provided for fold providers, to transform a fold before entering it into the hierarchy, which could respect this (or other text-based) option.