如何将蚀代码模板文件导入到IntelliJ IDEA? [英] how to import a eclipse code template file to intellij idea?

查看:117
本文介绍了如何将蚀代码模板文件导入到IntelliJ IDEA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

There are two different files about code style in eclipse:

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

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

Now I know the code formatter file can be imported with the path:

 "settings -> code style -> import"

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

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

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

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

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

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

有没有办法解决这个问题?

Is there a way to solve the problem?

推荐答案

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

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/

您目前最好的选择是使该插件正常工作并尝试一下.
https://code.google.com/p/eclipse2idea/
http://www.danhaywood.com/2009/10/11/converting-eclipse-templates-to-intellij-idea/

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

这篇关于如何将蚀代码模板文件导入到IntelliJ IDEA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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