[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Eclipse 2.1: Java Editor indentation problem

I have in my settings:

Java/Code Formatter:
  + Number of space representing an indentation level: 2
  + Insert Tabs for indentation not space: False.
Java/Editor:
  + Tab Width: 8.

So I expect my code to be indenting by 2 characters and never by tabs *but* that if I have tab in my code it would have a 8 charcters width.

Doing that, if I create a new class named Foo.

I go onto the line of the closing bracket of the ctor, after the bracket.

I type enter twice, I type the prototype of my new method (public void bar()). It is well positioned as expected 2 characters from the left.
I type enter, it add the opening and closing bracket for me at the right position (2).
I type enter to begin to enter the body of the bar() method. And here instead of being positioned at 2 + 2 = 4 characters, the body of the method is positioned at 8 just like a tab would have been used instead of spaces to align the body of my method.


Does somebody reproduce? Is that a bug?

Is there a means to workaround that annoying behavior?