Eclipse - format source

Eclipse is quite a clunky editor, I was wondering...

1) On mac odes anyway use a different editor?
2) In eclipse is there a way to auto format your code, i.e. to make it auto indented etc

Ta
  • I know there is an menu to format source in Eclipse, but it doesn't appear to work for MonkeyC code. I'm pretty sure it is intended for Java sources. That said, I've had luck with astyle. It does screw up in one place that I know of... initializing a map where the key is a symbol like so...

    var params = {
    :locX => 1,
    :locY => 1
    };


    You may be able to tweak the configuration so that it doesn't try to format likes like that, but I haven't had enough trouble with that to spend any time trying to fix it.

    Travis