Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
511 views
in Technique[技术] by (71.8m points)

eclipse - Importing/Exporting Project Preferences

Having a bit of a problem,

Due to the source-control set-up we use, each bug/enhancement is worked on in a new branch. This is fine, but when in Eclipse, we need to set-up a new project for every branch.

Is there any way of easily setting up default preferences for a project, or importing/exporting project preferences within Eclipse?

Thanks,

Stuart

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

One possible solution would be to store those common preferences at the workspace level for Eclipse (see Manage your Eclipse environment article)

The downside of having multiple workspaces is the need to share development preferences among them.
Since preferences are persisted on a workspace basis within Eclipse, you have to export your workspace preferences and import them to your desired workspaces (File > Export > Preferences).

Even if you stay in the same workspace (with several projects), you can share common settings with other developers by exporting those workspace preferences.

settings

As mentioned by Fabian, the project specific settings are in .classpath and .project, but he left out .settings:

.settings are for IDE project-specific settings like compiler warnings and so on.
It you want to share project-specific IDE-related settings, just copy the .settings directory from project directory to project directory.

Tips: copy your project launcher (created by default in <workspace>.metadata.pluginsorg.eclipse.debug.core.launches) into your .settings directory: that way, you will also share your custom project launchers.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...