2014 Jul 29 1:10 PM
I've recently began using ABAP in Eclipse.
One thing that bothers me is the default rules for how code is formatted (shift+F1 by default).
Does anyone know if it's possible to define custom rules for this formatting as you can with Java in Eclipse?
2014 Jul 29 1:21 PM
Hi Eamonn,
did you check the tool documentation/Eclipse help already?
Just search for "format abap".
Regards, Felix
2014 Jul 29 1:21 PM
Hi Eamonn,
did you check the tool documentation/Eclipse help already?
Just search for "format abap".
Regards, Felix
2014 Jul 29 1:43 PM
Hi Felix,
Thanks for your reply!
I did indeed check here but didn't find anything relevant. There are only two very limited options available. One regarding indentation and another that controls the case of variables and keywords.
What I'm specifically looking for (what I don't think we can do yet!) is a way to define my own rule-set for the formatter as you can in other IDE's. For example, using eclipse with Java, I can define a rule that will make { or } always move to a new line when present. Or for example, I can have the formatter always chain together similar variable declarations.
2014 Jul 29 2:10 PM
Hi Eamonn,
Sorry, it is not possible to specify more rules for the code formatter in Eclipse than for the code formatter in SAP GUI (aka Pretty Printer), currently.
Michael
2014 Jul 29 2:11 PM
That's what I thought, Thank you for the reply.
Here's hoping for future functionality