Application Development 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 code aligned by column with ECLIPSE

pascr
Explorer
0 Kudos
1,470

Hello,

I would like to know if is there a way to align the code in ECLIPSE as it's done in sapGUI?

Here's the same code in eclipse-editor :

and in gui-editor :

We can see that with Eclipse EDITOR the code is not aligned but in "zig-zag" way.

I saw that's possible with Eclipse-Java (if not mistaken) but what about Eclipse-ABAP ?

Thanks in advance for your help.

installed : Eclipse Version: 2023-09 (4.29.0) / Build id: 20230907-1323

1 ACCEPTED SOLUTION

pascr
Explorer
1,318

yes, maybe a bug or missing thinks in Eclipse (plugin or other)...

Finally, I reset the "FONT parameters" to original one

and it comes back to original (column aligned)

---

Regarding the color, you can parameter as you want a lot of things in eclipse.

13 REPLIES 13

matt
Active Contributor
0 Kudos
1,318

I've just started using this. It's great.

0 Kudos
1,318

HI @ lappan

Thanks for the tips.
But not available in Eclipse Marketplace ?

Because I use a customer computer ... and I can't install plugins in local mode (already tried and KO).

The only way to installe plugins is to use Eclipse Marketplace

matt
Active Contributor
0 Kudos
1,318

So you can't go: help->install new software-> https://sap.github.io/abap-cleaner/updatesite

0 Kudos
1,318

Thks for the info.

I'll try at home, because at office I always got this blocking error :

Unable to read repository at https://answers.sap.com/questions/14008210/abap-code-aligned-by-column-with-eclipse.html/content.xml.

CONNECT refused by proxy: HTTP/1.1 407 Proxy Authentication Required


Back later to say yes/no if working...

I'll also read about this plugin to know what it does ? 🙂


matt
Active Contributor
0 Kudos
1,318

The link is https://sap.github.io/abap-cleaner/updatesite

The link you've posted is to here.

0 Kudos
1,318

yes, wrong copy/past.
The same even with the good link (bc proxy block)

Unable to read repository at https://sap.github.io/abap-cleaner/updatesite/content.xml.

CONNECT refused by proxy: HTTP/1.1 407 Proxy Authentication Required

Sandra_Rossi
Active Contributor
1,318

The "zig-zag" effect is due to the proportional font which you are using in Eclipse, versus the monospaced font which is being used in "SAP GUI".

Use the same monospaced font in Eclipse (Settings / Preferences / ABAP Editor).

pascr
Explorer
0 Kudos
1,318

Hi @ sandra.rossi :

Thanks for the info.

your right, my "SAP GUI" use monospace

but how to know in Eclipse if the font is Monospace or Proportianal ?
Currently the one I use (because good looking for me) :

pascr
Explorer
0 Kudos
1,318

Actually, What I want is : In eclispe, have the column aligned (as in gui mode).

I mean by this that : whatever I write (letter, space, ...) the end of the string must be aligned.

Example : 10x "w" or 10x "." or 10x " "

in Gui :

>>last = column 13 ; and all caracters are aligned.


In Eclipse :

>>last = column 13 ; but all caracters are not aligned.

So I would like to have in Eclispe the GUY display .

Sandra_Rossi
Active Contributor
0 Kudos
1,318

Maybe it's a bug. Contact SAP Support.

I'm also really surprised by the colors you have in Eclipse, different background between normal code and ENDFORM.

pascr
Explorer
1,319

yes, maybe a bug or missing thinks in Eclipse (plugin or other)...

Finally, I reset the "FONT parameters" to original one

and it comes back to original (column aligned)

---

Regarding the color, you can parameter as you want a lot of things in eclipse.

Sandra_Rossi
Active Contributor
1,318

OOOOH, you mean the problem was SE38 inside Eclipse (sorry but Eclipse big advantage is to not use SE38, except where exceptionally required).

Thanks for the feedback, good to know that it's solved.

You can Accept your answer to make it more visible to people.