You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Persist character encoding of open files across restart #10444
Re-open the file using a non-default encoding (e.g. Windows 1252).
Close VS Code.
Re-open VS Code; layout of editor, open files, etc. will be persisted, character encoding will not be.
Expected behaviour:
Once I have explicitly re-opened a file in a different encoding, that encoding should be persisted along with the other session state (note that I am not asking for encoding auto-detection here, just that I don't have to manually specify it for the same open file every time I restart VS Code).
To verify:
Pushed a change to persist and restore encodings configured for any opened editor. Once an editor is closed and opened again the encoding will be picked again from the files.encoding setting. The only exception are when using UTF-8, UTF-16 LE and UTF-16 BE with a BOM where we can auto-detect the encoding.
Activity
bpasero commentedon Dec 19, 2016
Pushed a change to persist and restore encodings configured for any opened editor. Once an editor is closed and opened again the encoding will be picked again from the files.encoding setting. The only exception are when using
UTF-8,UTF-16 LEandUTF-16 BEwith a BOM where we can auto-detect the encoding.Persist character encoding of open files across restart (fixes micros…