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.
Re-Indent Current Line or Selection behavior changed between 6.9.1 and 7.0. In 6.9.1 it was also reformatting current line/selection while in 7.0 it's only fixing indentation. ex: public void method() { String val = getSomeValue(String parameter) ; } After Re-Indent Current Line or Selection: 7.0: public void method() { String val = getSomeValue(String parameter) ; } 6.9.1: public void method() { String val = getSomeValue(String parameter); } I understand that it might be a desired behavior (action is Re-Indent not Re-Format). Please add some new action with old behavior then, it's something I'm really addicted to (it's some ugly Emacs habit). Format (Alt + Shift + F) action is no good as it requires me to select current line before using it or it will format whole file.
Fixed in jet-main. New action added. http://hg.netbeans.org/jet-main/rev/56923c3f663b
Integrated into 'main-golden', will be available in build *201105050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/56923c3f663b User: Dusan Balek <dbalek@netbeans.org> Log: Issue #198165: Re-Format Current Line or Selection action added.