【问题标题】:Visual studio adding white space on git mergeVisual Studio 在 git merge 上添加空格 【发布时间】:2016-07-21 10:50:31 【问题描述】: 我们如何防止在 Visual Studio 2015 在合并分支时接触文件时添加前导空格。 Whitespace Shown in Stash 上面的示例是拉取请求期间 Stash 中显示的内容。 【问题讨论】: stackoverflow.com/questions/39525417/… 标签: git visual-studio whitespace 【解决方案1】: 我没有 VS2015,但它看起来像 Unicode BOM。搜索选项以将其添加到 VS 编辑器配置中。 Here's how 【讨论】: