备份Eclipse设置 [英] Backup Eclipse settings

查看:221
本文介绍了备份Eclipse设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今年我不得不在不同的平台(windows和linux)上重新安装Eclipse。



我没有找到一种有效的单一解决方案来分享不同版本的Eclipse的设置/首选项。



这是我目前所做的:




  • 导出软件更新站点(书签)XML文件。

  • 导出 Java->代码样式 - >代码模板

  • 导出 Java->代码样式 - >格式化器

  • 导出 Java->代码样式 - >整理导入

  • 导出 Java->模板

  • 为所有项目配置项目特定设置,然后从项目的基本目录中复制.settings目录。


  • 导出偏好设置(这在不同版本之间不起作用,因此,



确实有一个更简单的方法?

解决方案

我们使用了新的开发者的基准的pt,但我认为你可以应用相同的技术。基本上,您需要做的是这样的:


  1. 获取一个新的Ecipse副本,并将其设置为没有项目的喜好。

  2. 复制Eclipse安装目录和工作区 - 将其压缩并存放在某处

  3. 在Window - > Preferences中删除工作空间链接 - >工作区

  4. 当您需要新版本时,请将模板版本复制下来并瞧瞧!

希望这有帮助。


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?

解决方案

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:

  1. Get a new copy of Ecipse and set it up how you like with no projects.
  2. Take a copy both the Eclipse install directory and the workspace - zip them up and store them somewhere
  3. Remove the workspace link in Window -> Preferences -> Workspaces
  4. When you need a new version, copy the template version down and voila!

Hope this helps.

这篇关于备份Eclipse设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆