首页 > 解决方案 > .editorconfig 文件无法修复 Visual Studio 中的文件结尾问题

问题描述

我正在和其他几个人一起做一个项目,我们已经定义了一个 .editorconfig 文件

# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

即便如此,我仍然不断收到行尾不一致的消息。为什么会这样?为什么 .editorconfig 文件不能解决问题?该文件不应该使人们以正确的方式自动保存文件吗?

标签: visual-studioeditorconfig

解决方案


推荐阅读