The fourth tab under Environment contains the File Encodings options.
The Editor has defaults for the encodings used when opening and saving files. For many users these defaults will suffice. If you need to change either, select the Environment > File Encodings tab of the Preferences dialog.
Figure 3.5 The File Encodings tab of the Preferences dialog
For example, to make the Editor save Carriage Return Linefeed line-terminated files by default, select CRLF in the Line Termination Options under Output .