Auto-Indent Lines

Hello,

I am using IDEA 9. MacOSX

When I use the menu item Code->Auto-Indent Lines, it doesn't seem to be using the Preference setting under Code Style General.  This seems silly so I am assuming that  there is a way to get Auto-Indent to pay attention to my preferences.

Can any one straighten me out?

Thanks

Todd

3 comments
Comment actions Permalink

Hi Todd,

I just checked 'auto-indent lines' action with IDEA 9.0.2 and it works fine for me.

Example:

Initial:

public class TestClass {

    public String f(List<String> list) {
                System.out.println("strings");
  return null;
          }
}


Select f() method body and invoke 'Auto-Indent Lines'

Result:

public class TestClass {

    public String f(List<String> list) {
        System.out.println("strings");
        return null;
    }
}


Please provide more details about your use-case.

Regards, Denis

0
Comment actions Permalink

Your right it does work.

I had not set the indent for the Specific file type I was working with.

Sorry for the confusion

Thanks

Todd

0
Comment actions Permalink

Welcome :)

One more indentation-related IDEA feature just in case you don't have information about it - you can select particular lines of code and move them to the right/left via pressing 'Tab'/'Shift+Tab'.

Regards, Denis

0

Please sign in to leave a comment.