如何将eclipse代码模板文件导入intellij的想法?

Ger*_*ria 7 eclipse intellij-idea

eclipse中有两个关于代码样式的不同文件:

  1. 代码格式化程序文件
  2. 代码模板文件.

现在我知道可以使用以下路径导入代码格式化程序文件:

 "settings -> code style -> import"
Run Code Online (Sandbox Code Playgroud)

但我不知道如何导入代码模板文件,代码模板文件有路径:

"settings -> file and code template"intellij.

现在我在一个其他人使用eclipse的项目中编码,他们只有eclipse代码模板文件.

有办法解决问题吗?

Gui*_*ler 1

不幸的是,您无法导入现成的代码模板 。 不过,将来可能会改变.. http://blog.jetbrains.com/idea/2014/01/intellij-idea-13-importing-code-formatter-settings-from-eclipse/

现在最好的选择是让这个插件工作并尝试一下..
https://code.google.com/p/eclipse2idea/
http://www.danhaywood.com/2009/10/11/converting -eclipse-templates-to-intellij-idea/

不过,我在市场或更新网站上找不到该插件。
祝你好运..