简体   繁体   中英

Eclipse - How to sort package explorer non alphabetically?

Using eclipse; this is what my package explorer looks like:

在此处输入图片说明

I want org.plx to be above com.rs

How can I do this?

I have seen some threads on here with this but nobody has said where and in which menu we can modify whether the explorer is sorted alphabetically or not.

On Eclipse Oxygen (at least) it's possible to workaround that by writing your own package abbreviation rules on

Preferences > Java > Appearance > [x] Abbreviate package names

There, write rules like

org.plx=[A.plx]
com.rs=[B.rs]

or

org.plx=1.plx
com.rs=2.rs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM