.editorconfig indent_size

时间:2018-06-07 13:37:44

标签: c# .net indentation editorconfig

使用.editorconfig文件,我可以配置Visual Studio如何缩进代码等。

现在,.NET Compiler Platform's .editorconfig file以及网上发现的其他几个示例包含以下奇怪的评论:

[*]
indent_style = space
# (Please don't specify an indent_size here; that has too many unintended consequences.)

为所有文件类型定义默认缩进大小时,这些许多意外后果是什么?我是否应该在我自己的.editorconfig文件中避免这种情况,并且只为特定的文件类型定义缩进大小?

定义默认缩进样式(制表符/空格)但不是默认缩进大小似乎很奇怪。

0 个答案:

没有答案