Visual studio 2019 and txt encoding for editor (how to change it?)

Code Wanderer 396 Reputation points
2021-01-31T16:43:46.443+00:00

When I create txt file in VS 2019 (no programaticaly but as new item) and save it, its encoding is UTF-8 BOM. How to change VS encoding for txt editor to UTF-8 without BOM?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,684 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 112.9K Reputation points
    2021-01-31T17:00:55.167+00:00

    Select “Save As” from File menu, go to Save button and open its dropdown menu, select “Save with Encoding…”, choose “Unicode (UTF-8 without signature)”.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful