【发布时间】:2017-01-07 06:46:08
【问题描述】:
我为 intellij 创建了一个.editorconfig 文件,如下所示
# editorconfig.org
root = true
[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
indent_style = space
indent_size = 4
[*.js]
indent_size = 4
[{package.json}]
indent_style = space
indent_size = 4
如何将这种代码风格一次性应用到所有文件?现在我将打开一个文件并按 Ctrl +Alt +l 这将为该文件完成这项工作,但是有没有办法将此作为 intellij14 中所有应用程序的配置应用?
【问题讨论】:
标签: intellij-idea configuration formatting editorconfig