简体   繁体   中英

Eclipse: Sorting in Package Explorer

I have a package structure like this:

xxx.problem1
xxx.problem2
...
xxx.problem99

The imperfection is the sorting in Eclipse: xxx.problem10, xxx.problem11, ... is shown above xxx.problem2 in the package explorer.

I would like to see it in this way:

xxx.problem1
xxx.problem2
xxx.problem9
xxx.problem10
xxx.problem11
...

Is there a possibility to have this more human logical sorting used in the package explorer?

Eclipse can't sort packages like that.

If you want to rename, you can do a global regex replace and replace:

\.problem([0-9][.;])

With:

\.problem0$1

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