备份 Eclipse 设置
今年我不得不在不同平台(Windows 和 Linux)上重新/安装 Eclipse 好几次。
我还没有找到一种有效的单一解决方案来跨不同版本的 Eclipse 共享设置/首选项。
这就是我目前所做的:
- 导出软件更新站点(书签)XML 文件。
- 导出Java->代码样式->代码模板
- 导出Java->代码样式->格式化程序
- 导出Java->代码样式-> 代码模板组织导入
- 导出Java-> 模板
- 为所有项目配置项目特定设置,然后从项目的基目录复制 .settings 目录。
- 截取Java->编辑器->内容辅助->收藏夹(没有导出)
- 导出首选项(这在不同版本中不能很好地工作,因此上面)
当然有更简单的方法吗?
I have had to re/install Eclipse across different platforms (windows and linux) several times this year.
I have not found an effective single solution way to share settings/preferences across different versions of Eclipse.
This is what I currently do:
- Export Software Update Sites (Bookmarks) XML file.
- Export Java->Code Style->Code templates
- Export Java->Code Style->Formatter
- Export Java->Code Style->Organize Imports
- Export Java->Templates
- Configure Project Specific Settings for all your projects then copy the .settings directory from the base directory of your project.
- Take a screenshot of Java->Editor->Content Assist->Favorites (there is no export)
- Export preferences (this does not work well across different versions hence above)
Surely there is an easier way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否尝试过
File >出口>一般>偏好设置?
您在问题中引用的大多数(不是全部,但大多数)首选项都将导出到 xml 文件中。
其中包括模板和格式化程序。
尽管它的内容确实没有跨 Eclipse 版本进行完全解释,但它只是连接您在问题中提到的单独导出。
“导入/导出项目首选项”中的其他提示。
Did you try
File > Export > General > Preferences
?Most (not all, but most) of the preferences you reference in your question will be exported in an xml file.
That include templates and formatters.
Even though it is true its content isn't fully interpreted across Eclipse versions, it simply concatenates the separate exports you mentions in your question.
Other tips in "Importing/Exporting Project Preferences".
我们对新开发人员使用基线的概念,但我认为您可以应用相同的技术。基本上,您需要做的是:
希望这有帮助。
We use the concept of a baseline for new dev's but I think you can apply the same technique. Basically, what you need to do is this:
Hope this helps.
如果您同意将内容存储在云中,我建议您尝试备份并共享名为“将 Eclipse 踢到云插件”的 Eclipse 插件。
YouTube 视频
市场插件
If you are ok with storing things in the cloud I suggest you try the backup and share your Eclipse plugin called 'Kick your Eclipse to the Cloud Plug-in'.
You Tube Video
Market Place Plugin