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.
Product Version: NetBeans IDE Dev (Build 200803021202) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-b05 System: SunOS version 5.10 running on x86; UTF-8; cs_CZ (nb) I decided to open this as a new issue, although I have already added a comment with more or less the same content somewhere else. Go to Editing > Editor Settings > Java Editor, click ellipsis (...) button by the Indentation engine in the Properties window, a window with the settings for the indentation engine appears. If you check/uncheck "Add newline before the brace", it has no effect - the result of a code formating (Shift+Alt+F) is always: while (true) { // some code } instead of (in the case that a newline should be added): while { // some code } (Note: If it is possible to enable this option in the Options, it should work, otherwise the potential programmer is indeed confused. I think the "Advanced options" button should be removed asap)
Please use the formatting options in Tools-Options -> Java Code.
Just an idea - what about fixing the issue by imediate removal of the "Advanced options" button from the Options dialog? It's been planned, so lets do it! If the settings under the "advanced options" do not work, they are useless there and the one who tries to use them makes some opinion about this. It just looks really strange if the choices under settings do not work. It is the same as if you just placed the button "Auto-generate the application I want" and the check-box "Make it with no bugs" right bellow. It would have the same effect in the end... Well - as a kind of a miracle - you can suddenly have as much advanced options as you want:o)!
Don't worry we will get to it. But please note that the 'Advanced Options' contain also options from other modules. It's not editor's call to remove them altogether. Also not all the advanced options are broken or useless and you would be surprised how many people use some of them. On the other hand you are completely right that this has been dragging for quite too long now and we should finally act.
I know "vstejskal" and I apologize for being a bit sarcastic in the last comment. We are still at the DEV stage, it's time enough to fix these minor (but the more confusing) bugs.
I hid the property. I'm not sure about nodes for the other editors, but for some of them we should probably do the same. http://hg.netbeans.org/main/rev/75cfebede4f2
Verified: 20080411