dotnet/roslyn

Move to new file doesn't honor charset in .editorconfig

开放

#34,200 创建于 2019年3月17日

 (0 条评论) (2 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDEBugFeature - Editor Confighelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Version Used: 15.9.9

Steps to Reproduce:

  1. Have an .editorconfig with charset = utf-8
  2. Open an existing file (encoding irrelvant)
  3. Add a type to the file
  4. Apply "Move type to new file" refactoring

Expected Behavior:

The new file is stored in the encoding specified by .editorconfig (in this case UTF8, no BOM).

Actual Behavior:

The new file is stored in UTF8-BOM.

贡献者指南