[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Eclipse 2.1: Java Editor indentation problem
|
- From: Christophe Jolif <cjolif@xxxxxxx>
- Date: Fri, 25 Apr 2003 13:13:06 +0200
- Newsgroups: eclipse.tools
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
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?