1

I am using dotnet format command to do code analysis with certain IDE's in the .editorconfig file. However, some of the files I see in my git changes are just encoding changes and no text changes in the code. This is the error on the top of the files:

"these files have different encodings. left file: unicode (utf-8) with signature. right file: unicode (utf-8) without signature. you can resolve the difference by saving the right file with the encoding unicode (utf-8) with signature. click to learn more"

I found this post which suggest to remove the whitespace subcommand.

However, doing this also removes the trivial whitespace issues defined in my .editorconfig file like 'insert space after comma'.

How can I remove the unicode changes but also keep the original whitespace formatting when running the dotnet format command.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.