备份 Eclipse 设置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4701544/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:52:34  来源:igfitidea点击:

Backup Eclipse settings

eclipsebackupsettings

提问by Adam Gent

I have had to re/install Eclipse across different platforms (windows and linux) several times this year.

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

I have not found an effective single solution way to share settings/preferences across different versions of Eclipse.

我还没有找到一种有效的单一解决方案来在不同版本的 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 Settingsfor 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)
  • 导出软件更新站点(书签)XML 文件。
  • 导出Java->代码样式->代码模板
  • 导出Java->代码样式->格式化程序
  • 导出Java-> 代码样式-> 组织导入
  • 导出Java->模板
  • 为所有项目配置项目特定设置,然后从项目的基本目录复制 .settings 目录。
  • 截图Java->Editor->Content Assist->Favorites(没有导出)
  • 导出首选项(因此在不同版本之间效果不佳

Surely there is an easier way?

当然有更简单的方法吗?

采纳答案by javamonkey79

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!
  1. 获取 Ecipse 的新副本,并在没有项目的情况下按照您的喜好进行设置。
  2. 复制 Eclipse 安装目录和工作区 - 将它们压缩并存储在某个地方
  3. 删除窗口 -> 首选项 -> 工作区中的工作区链接
  4. 当您需要新版本时,将模板版本复制下来,瞧!

Hope this helps.

希望这可以帮助。

回答by VonC

Did you try File > Export > General > Preferences?

你试了File > Export > General > Preferences吗?

export

出口

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.

您在问题中引用的大部分(不是全部,而是大部分)首选项都将导出到 xml 文件中。
这包括模板和格式化程序。
尽管它的内容确实没有在 Eclipse 版本中得到完全解释,但它只是将您在问题中提到的单独导出连接起来。

Other tips in "Importing/Exporting Project Preferences".

导入/导出项目首选项”中的其他提示。

回答by Daniel Sokolowski

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'.

如果您可以将内容存储在云中,我建议您尝试备份并共享名为“将 Eclipse 踢到云插件”的 Eclipse 插件。

You Tube Video

你管视频

Market Place Plugin

市场插件