Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何设置;编辑>;代码样式>;爪哇语;Intellij by.editorconfig文件中的参数?_Java_Intellij Idea_Formatting_Editorconfig - Fatal编程技术网

Java 如何设置;编辑>;代码样式>;爪哇语;Intellij by.editorconfig文件中的参数?

Java 如何设置;编辑>;代码样式>;爪哇语;Intellij by.editorconfig文件中的参数?,java,intellij-idea,formatting,editorconfig,Java,Intellij Idea,Formatting,Editorconfig,好的!我可以通过在项目的根路径中放置一个.editorconfig文件来设置格式规则。但是如何使用这个.editorconfig文件设置“编辑器>代码样式>Java” 换句话说,我需要知道如何导入此文件以配置代码样式部分。 我需要在必要时更新此。编辑或配置 如果在project中使用.editorconfig,并且设置(macOS上的首选项)|编辑器|代码样式|启用editorconfig支持选项,IDE将从文件(如果存在)而不是编辑器|代码样式IDE设置中获取代码样式选项 要查看和控制code

好的!我可以通过在项目的根路径中放置一个.editorconfig文件来设置格式规则。但是如何使用这个.editorconfig文件设置“编辑器>代码样式>Java”

换句话说,我需要知道如何导入此文件以配置代码样式部分。

我需要在必要时更新此。编辑或配置


如果在project中使用
.editorconfig
,并且设置(macOS上的首选项)|编辑器|代码样式|启用editorconfig支持选项,IDE将从
文件(如果存在)而不是编辑器|代码样式IDE设置中获取代码样式选项

要查看和控制
code Style>Java
的选项,可以将当前的IDE代码样式设置导出到
.editorconfig
文件:


并在文件的
[*.java]
部分下查看和更改它们。

如果在项目中使用
.editorconfig
,以及设置(macOS上的首选项)|编辑器|代码样式|启用editorconfig支持选项,IDE将从
中获取代码样式选项。editorconfig
文件(如果存在)而不是从编辑器|代码样式IDE设置

要查看和控制
code Style>Java
的选项,可以将当前的IDE代码样式设置导出到
.editorconfig
文件:


并在文件的
[*.java]
部分下查看和更改它们。

您不能。.editorconfig中定义的设置在CTRL+ALT+S-Code样式中不可见。 我们刚刚收到消息
“设置可能被EditorConfig覆盖”

您不能。.editorconfig中定义的设置在CTRL+ALT+S-Code样式中不可见。 我们刚刚收到消息
“设置可能被EditorConfig覆盖”

我知道如何导出.EditorConfig。我需要知道如何导入此文件以配置代码样式部分。我知道如何导出.editorconfig。我需要的是知道如何导入这个文件来配置代码样式部分。这是我最害怕的答案!但我已经在期待了!这是我最害怕的答案!但我已经在期待了!除息的