How to import eclipse code template file into intellij idea?

There are two different code style files in eclipse:

  • Code Formatting File
  • Code Template File.

Now I know that the code formatting file can be imported using the path:

"settings -> code style -> import" 

But I do not know how to import the code template file, and the code template file has a path:

"settings -> file and code template" in intellij .

Now I am coding in a project where other people use eclipse and they only have the eclipse code template file.

Is there any way to solve the problem?

+7
eclipse intellij-idea
source share
2 answers

Unfortunately, you cannot import code templates out of the box.
This may change in the future, but ..
http://blog.jetbrains.com/idea/2014/01/intellij-idea-13-importing-code-formatter-settings-from-eclipse/

Your best bet right now is to make this plugin work and give it pleasure.
https://code.google.com/p/eclipse2idea/
http://www.danhaywood.com/2009/10/11/converting-eclipse-templates-to-intellij-idea/

I could not find a plugin in the market or an update site for it. Good luck ..

+1
source share

I exported the code from https://code.google.com/p/eclipse2idea/ , opened the maven project in IntelliJ, made a clean package and used the resulting jar to convert Eclipse xml to Intellij xml. No problems.

Now I do not know how to import an Intellij XML file. "Import options" do not work. In the "Live template" area in the settings, import import is missing.

Does anyone know how to import a converted IntelliJ Template xml template?

0
source share

All Articles