how to import a eclipse code template file to intellij idea?

前端 未结 2 1095
青春惊慌失措
青春惊慌失措 2021-02-15 16:10

There are two different files about code style in eclipse:

  1. Code formatter file
  2. Code template file.

Now I know the code formatter file can

相关标签:
2条回答
  • 2021-02-15 16:46

    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 an Eclipse xml to an Intellij xml. No problems.

    Now, I do not know how to import the Intellij xml file. "Import Settings" does not work. In the "Live Template" area in settings, there is no import import.

    Does anyone have a clue how to import the converted IntelliJ Template xml?

    0 讨论(0)
  • 2021-02-15 16:51

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

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

    I couldn't find the plugin on the marketplace or an update site for it though.
    Best of luck..

    0 讨论(0)
提交回复
热议问题