2023 Nov 15 5:01 PM
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
2023 Nov 16 4:42 PM
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.
2023 Nov 15 7:14 PM
You can try the ABAP Cleaner Eclipse PlugIn GitHub - SAP/abap-cleaner: ABAP cleaner applies 65+ cleanup rules to ABAP code at a single keystroke
2023 Nov 16 7:41 AM
2023 Nov 16 9:41 AM
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
2023 Nov 16 10:35 AM
So you can't go: help->install new software-> https://sap.github.io/abap-cleaner/updatesite
2023 Nov 16 11:10 AM
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 ? 🙂
2023 Nov 16 1:39 PM
The link is https://sap.github.io/abap-cleaner/updatesite
The link you've posted is to here.
2023 Nov 16 4:44 PM
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
2023 Nov 15 7:57 PM
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).
2023 Nov 16 9:42 AM
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) :
2023 Nov 16 9:54 AM
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 .
2023 Nov 16 2:23 PM
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.
2023 Nov 16 4:42 PM
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.
2023 Nov 16 7:08 PM
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.