Encodings and line endings
The status bar shows the open file's line endings (LF, CRLF, CR, or mixed) and encoding (UTF-8 with or without BOM, UTF-16, Windows-1252, ISO-8859-1 / 15). Files are read as they are and written back the same: an old Windows-1252 file stays Windows-1252.
Convert
- Click the line endings: LF, CRLF or CR for the whole file.
- Click the encoding: another one. Before converting to an 8-bit encoding, the IDE counts the characters it would lose and asks.
The change is one edit: save to keep it, Ctrl+Z to take it back.
Remote files
A file opened over SSH is saved back in its own encoding and line endings too.