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 198165 - Re-Indent Current Line or Selection does not r-format line
Summary: Re-Indent Current Line or Selection does not r-format line
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 07:44 UTC by mco
Modified: 2011-05-05 06:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mco 2011-04-28 07:44:57 UTC
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.
Comment 1 Dusan Balek 2011-05-03 13:05:33 UTC
Fixed in jet-main. New action added.

http://hg.netbeans.org/jet-main/rev/56923c3f663b
Comment 2 Quality Engineering 2011-05-05 06:18:09 UTC
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.