2016-07-21 28 views
1

所以我有一個editorconfig文件是這樣的:是否可以將editorconfig文件放在最頂層的根目錄下?

# Indent preferences 
indent_style = space 
indent_size = 2 

# Do not change these 
end_of_line = lf 
charset = utf-8 
trim_trailing_whitespace = true 
insert_final_newline = true 

[*.md] 
trim_trailing_whitespace = true 

我的文件結構如下:

|-- src 
|-- tools 
|-- test 
|-- config 
    .editorconfig 

正如你所看到的,我有一個配置目錄,我想保留的所有配置相關的東西。我希望在整個項目中使用.editorconfig文件,但顯然它不在頂層根目錄中。這可能嗎?

回答

1

目前不可能:.editorconfig文件從根目錄加載到每個目錄級別上的文件目錄。在config目錄中支持這樣的功能很容易搞砸了。

相關問題