I hate it when I do that. I found a solution for the formatting problem. The tabs were already there. So the really issue is the formatter does not convert tabs to the appropriate number of spaces. other than that it seemed to work fine in this case. I did a search and replace (regular expression \t for spaces) and everything was fine. Did a reformat and it did not convert them back to tabs. So its just missing the conversion.
Also as far as the formatting goes, in the Java editor there are actually 2 settings concerning tabs. The displayed tab width which I believe should always be set to 8 to match non IDE text editors … I mean standard tab size. Then there is the indentation size for auto- and re-formatting, for Java I set this to 4 as Sun’s Java formatting suggests. But in the case of web pages I conform to the Ruby style of 2 spaces. Anyway, there is no way to set these two separately (which is why I didn’t see the above problem immediately).
Anyway, thanks again for all your great work, and I hope my comments help improve the product.
-Geoff