Replacing tabs with spaces in Eclipse
An annoying preference conflict in Eclipse 3.4 (and possibly earlier). I had a problem in that despite having ticked 'Preferences | General | Editors | Text Editor | Insert Spaces for Tabs', my Java code was still being generated with tabs.
Turns out that to really get spaces for tabs functionality, you also have to edit your code formatter options. Maybe the default profile is more intelligent, but I have a custom profile, and I also had to go to 'Preferences | Java | Code style | Formatter', edit my active profile and change 'Indentation | General settings | Tab policy', which had been set to 'tabs only'. Changing this to 'spaces only' solved my problem.
Bah!
{2009.01.21 12:38}