fidley / ABAPQuickFix

ABAP Quick Fix
https://abapblog.com
MIT License
42 stars 9 forks source link

New Quick Fix: Sort Declarations #58

Closed lukas-mb closed 7 months ago

lukas-mb commented 9 months ago

Hi, what do you think about a new quick fix for sorting data declarations? Sometimes, I encounter code with many declarations without any structure. There could also be an ordering mechanism based on user preferences. For example:

  1. Objects (go , lo)
  2. Tables (gt , lt)
  3. Structures (gs, ls)
  4. Data elements (gv, lv)

In the initial phase, we can use variable names for sorting, which is a simpler step. Later on, we could also implement a backend that searches for types in the dictionary, regardless of the variable name.

If I find some time in the upcoming weeks, I would try to start this myself.

MDagni commented 9 months ago

I love the idea! I usually want to do this manually, but you know, laziness... I agree with ordering mechanism; order by type if possible, order by name if not.

fidley commented 9 months ago

Sounds really great! If you need any support let me know.

fidley commented 7 months ago

image 🥇