How to sort projects alphabetically by name in PyDev Package Explorer in Eclipse?

Also, is there a universal way to do this that works for other types of projects (in other aspects)?

+7
source share
4 answers

I experienced this (very annoying) problem, and I found a message from someone from SourceForge with the same problem, who said that he found that if he added the project root folder to his PYTHONPATH, he would fix the problem. So I looked at my pseudo-alphabetical project PYTHONPATH and saw that it already included the root folder in addition to the src folder. Therefore, on a whim, I deleted the root folder from PYTHONPATH. (I really shouldn't have him there anyway.) And although it was the opposite of what he said, fixed his problem, it fixed my problem. Hover over your mouse.

+2
source

The following worked for me:

  • Add project root to PYTHONPATH projects
  • Right Click Project> Close Project
  • Right Click Project> Open Project

Problem projects then magically appear in the correct order.

+2
source

As Matt noted, the default and only Eclipse Navigator behavior that can be used in any perspective is to sort projects by name. My version of Eclipse (3.6.2) gives me the ability to sort resources by type, but this only applies to leaves of the tree (files).

But your question was about the PyDevs navigator, so I looked at the PyDev Package Explorer. I did not find a way to change the sorting of projects. My current installed version is 2.7.1.x, and as far as I remember, this applies to 2.6.0.x.

Thus, your question cannot be answered directly, because there is no way to change the sorting of projects without inserting the source code of the plug-ins or expanding the navigators (if there is a corresponding extension point).

0
source

My solution to the problem was to go to the ViewMenu icon in PyDevPackageExplorer and select Select Working Set . In the Select Working Set window, I left the selection as No Working Sets and clicked OK. This seems to have updated the alphabetical order since everything is now sorted correctly.

0
source

All Articles