如何将.XML代码样式导入IntelliJ Idea 15 [英] How to import .XML code style into IntelliJ Idea 15
问题描述
我想在XML文件中定义的编辑器中使用特定的代码样式,如下所示:
I want to use a specific code style in my editor defined in an XML file, which looks something like this:
<code_scheme name="CustomStyleName">
<option name="JAVA_INDENT_OPTIONS">
<value>
...
如何将这种样式导入IntelliJ Idea.当我转到首选项"->编辑器"->代码样式"->管理"时,只能导入Eclipse XML配置文件.
How is it possible to import this style into IntelliJ Idea. When I go to Preferences->Editor->Code Style->Manage it is only possible to import an Eclipse XML Profile.
推荐答案
如果您以前将XML导出为Intellij,则可以执行以下操作:
If your XML is previously exported Intellij you can simply do:
文件>导入设置>选择您的xml
File > Import Settings > select your xml
如果是自定义定义的,则可以尝试将xml复制到intellij配置目录:
If its custom defined, one you can try copying your xml to intellij config directory:
config/codestyles
config/codestyles
假设您的xml是intellij可以理解的格式,那么它将显示在
Assuming your xml is in format intellij can understand, it will then show up in
代码样式>管理
如果您的XML格式不同,请尝试将标签与一种预定义样式(也就是XML)进行匹配
If your XML is in different format, try to match tags with one of pre-defined styles(also XML)
这篇关于如何将.XML代码样式导入IntelliJ Idea 15的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!