dotnet/roslyn

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

Open

#34,200 opened on Mar 17, 2019

View on GitHub
 (0 comments) (2 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEBugFeature - Editor Confighelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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.

Contributor guide