How do I reindent all my codes in Eclipse?

clojure, eclipse, ide

Solution

Ctrl+Shift+F

will format all your code according to active formatting rules, this includes any indentation rules you defined (tabs/spaces, amount of those, etc...)

You can change those rules at:

- Window > Preferences

- Java > Code Style > Formatter

Problem

In most of the IDEs, I had a Reindent All command. How do I do that in Eclipse 1.2? Edit: The commands work with Java codes but is there a way I can get it to work with Clojure?

Original source