Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP in Eclipse, Code Formatter

Former Member
1,698

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
754

Hi Eamonn,

did you check the tool documentation/Eclipse help already?

Just search for "format abap".

Regards, Felix

4 REPLIES 4

Former Member
0 Kudos
755

Hi Eamonn,

did you check the tool documentation/Eclipse help already?

Just search for "format abap".

Regards, Felix

0 Kudos
754

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.

schneidermic0
Product and Topic Expert
Product and Topic Expert
0 Kudos
754

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

754

That's what I thought, Thank you for the reply.

Here's hoping for future functionality