Community
Participate
Working Groups
If I set "Indentation is represented by a tab" in Window-Preferences-Java-Code Formatter-Style, then when I press enter after the { in the code below (the dot represents the cursor position): if (something) {. the result is as expected, i.e: if (something) { . Howerver, if I do not set the above option (which is what I want), then I get: if (something) { . This is very annoying as I have to continually delete the extra spaces that are inserted.
How the indentation looks depends on your settings. There are two settings: One that talks about the usage of tabs and the other one talking about how many spaces are representing an indentation level. The example you give makes me believe that your value fir the latter setting is 8.
I still think its a BUG because I use the following settings: Window-Preferences-Java-Editor: Appearance Tab ---------------------------------------------- Displayed Tab Width = 8 Window-Preferences-Java-Code Formatter: Style Tab ------------------------------------------------- Insert tabs for indentation, not spaces is DISABLED Number of spaces representing an indentation level = 3 I use these so that I can spot when TABS have been inserted incorrectly via other editors because the print view will be tabbed to 8 instead of 3. BUG 28454 seems to have a patch for this - why don't you use it?
If you know that this is a dup, why aren't you marking it as one? *** This bug has been marked as a duplicate of 28545 ***
Wrong bug #.
*** This bug has been marked as a duplicate of 28454 ***