Community
Participate
Working Groups
I20031216 By default, using the tab key inserts space characters. Prior to the last few Integration builds, Eclipse has always inserted tab character by default. (I'm using the new code formatter)
In a fresh workspace with the new code formatter enabled, a tab key is inserted when pressing a tab key. Have you create your own code formatter profile ? If so, what value has the Use tabe character field on the Others page of the code formatter. Creating a new profile initialize this field to unchecked. Default should be checked.
Last comment was wrong. In a fresh workspace, when using the new code formatter with either the Default or Java convention profile tab inserts 4 spaces when used for indenting. The Default profile is meant to be compatible with the old formatter so it should use tabs instead spaces (e.g the option "Use tab character" under the other tab should be checked). Moving to JDT/Core since they provide the default profile.
We should consider this for M6 since it is really annoying when switching to the new formatter.
Created attachment 7223 [details] Proposed patch
Jerome, I tested it and it works for me.
Released proposed patch and changed corresponding formatter tests.
Verified for 3.0 M6 with build 200312180955.