You need to sign in to do that
Don't have an account?
Pooja Shah
Formatting code in Eclipse
To use the built in formatter of Eclipse we can ideally use the ctrl+shift+F key. However this doesnt seem to work when I try formatting my apex classes.
Can anyone tell me if I need to change some settings to format the code?
Can anyone tell me if I need to change some settings to format the code?
Here it is written, that you can use the java editor to indent your code..
for me, this works fine!
http://stackoverflow.com/a/8811156
As Alexander pointed out use JAVA editor and JAVA formatting option to format Apex Code
Source : http://stackoverflow.com/a/8806871/445594