Go to Tools-->Options-->File Options-->Save and select the desired line ending format in the "Line format" field. To change this on a per file basis instead of for every file, go to (File-->Save As) and select the desired line ending in the "Line Format" listbox.