问题
When you have 5+ languages and 100+ projects, IMO the default of using one workspace is not acceptable because the one workspace becomes horribly disorganized. Having one huge unorganized workspace lowers your productivity.
The question:
What are the more advanced ways of using Eclipse when you have 5+ languages and 100+ projects? I would really appreciate advice that elaborates a little bit more than just giving one sentence like "use multiple workspaces" or "use working sets".
"Must have" requirements:
- The project navigator only shows related projects (like only projects from abc language or only projects from xyz language)
- The described method is currently being used by you or someone you know and has been used for more than two weeks
"Would like" requirements:
- the ability to be able to have projects with the same name (like "helloworld" for language xyz and "helloworld" for language abc)
(Side note:
FYI, one of the reasons for asking on SO.com is because I have searched enough on Google to know that there are LOTS of people who have the same "Help my Eclipse workspace is out of control" problem. )
回答1:
If these projects are completely independent from each other, I would create separate workspaces, one workspace for each set of projects that are connected and cannot be built on their own. Is there a reason you don't want to split to multiple workspaces? I'm pretty sure this is how Eclipse was intended to be used in this case. I've done it many times and find it to be a good solution.
回答2:
The way I work with my hundreds of projects is this:
- I have one big workspace where I have most of my projects. These projects are all tangentially related. I separate them into working sets. I tend to only show the working sets of the projects that I am working on currently. All other projects are closed.
- Then I have a few more eclipse workspaces where I keep side projects that are completely independent from the big workspace. The eclipse installations for my side projects are usually different from the installation used by my big workspace because they are customized for the work required by the side project.
For example, my big workspace uses SpringSource Tool Suite, but my side-project workspaces are vanilla Eclipse with m2eclipse installed.
I find that this works well as long as I don't have too many projects opened at once in my big workspace.
回答3:
- File – New – Java Working Set
- Add related projects into the working set.
- Repeat till most/all projects are in relevant working sets.
- In Package Explorer, click view menu (the downward facing triangle icon), Top Level Elements – Working Sets.
- Drag and drop reorder the working sets
回答4:
In fact there is no problem in using single workspace even when there are large number of projects.
Ways to improve performance
- On Project Explorer View right click on the unused project and choose 'close project` from context menu
- Uncheck
Build Automatically
fromProject
menu
Way to reduce the clutter
Use
Working Set
to drill down to the specific set of projects.Window - > Show View -> Navigator
Select the submenu (down arrown button) on Navigator view and select the Select Working Set
. Then create a working set by selecting the New
button. Select Resource
on the new popup window and select the projects that you wish to currently work on. Navigator view only show these projects.You can switch between different working sets whenever you felt the need.
Hope the answer will help you.
回答5:
I'm a Java web developer. Not all of our production servers have the same version of java. So, I make separate work spaces for each java version.
So, the defaults for one work space is Java 1.5, and another one is Java 1.6. And I have a separate work space for personal games I'm developing.
来源:https://stackoverflow.com/questions/6310928/how-do-you-organize-100-projects-in-eclipse