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?
Show activity on this post. Ctrl + Shift + F formats the selected line(s) or the whole source code if you haven't selected any line(s) as per the formatter specified in your Eclipse, while Ctrl + I gives proper indent to the selected line(s) or the current line if you haven't selected any line(s).
Open the required file. Go to Source | Format Document or press Ctrl+Shift+F.
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:
Is CRTL+SHIFT+F working in eclipse 1.2 ? In 3.5 is working fine.
You can also select all the code you want to indent, and then hit CTRL + I
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With