I recently started to use Visual Studio Code on Server Systems where I did not have Studio IDE installed. I like it very much but I\'m running into a problem.
When I open
Add guide by image :
File >> Preferences >> Settings
Enter autoGuessEncoding and make sure checkbox is checked
File
-> Preferences
-> User Settings
"files.encoding": "windows1252"
to the right editor window and saveNow VSCode opens all text files using windows-1252
when there is no proper encoding information set.
EDIT:
In 2017's June release the files.autoGuessEncoding
setting was introduced. When enabled it will guess the file's encoding as good as possible. Its default value is false
.
To allow Visual Studio Code to automatically detect the encoding of a file, you can set "files.autoGuessEncoding":true
(in the settings.json
configuration file).
https://github.com/Microsoft/vscode/pull/21416
This obviously requires an updated verison of the application compared to when the question was originally asked.