In VS2015 I would select File -> "Advanced Save Options...", where I could pick the encoding I wanted, e.g. UTF-8.
In VS2017, this option is no longer in the File menu.
How can I save files with a specific encoding in VS2017?
In the Open With dialog box, choose the editor to open the file with. Many Visual Studio editors, such as the forms editor, will auto-detect the encoding and open the file appropriately. If you choose an editor that allows you to choose an encoding, the Encoding dialog box is displayed.
Save As Encoding. This command saves the current file with a specified character encoding. To use this command, select the desired encoding, then click the Save button to save the file.
Save / Auto Save# By default, VS Code requires an explicit action to save your changes to disk, Ctrl+S. However, it's easy to turn on Auto Save , which will save your changes after a configured delay or when focus leaves the editor. With this option turned on, there is no need to explicitly save the file.
From Visual Studio Team:
Advanced Save Options... has been moved due to uncommon use.
You can still access the functionality through File-> Save As -> then clicking the down arrow on the Save button and clicking "Save With Encoding..."
You can also add it back to the File menu through Tools->Customize->Commands if you want to.
Turns out there is a caret in the Save-button after you select "Save As...", there you can select "Save with encoding".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With