In the bottom-right corner of the window there is an indicator that says
CRLF
orLF
[highlighted in green on the picture] which will let you set the line endings for a particular file. Clicking on the text will allow you to change the line endings as well.
CR
is a bytecode for carriage return (from the days of typewriters) andLF
similarly, for line feed. It just refers to the bytes that are placed as end-of-line markers.
Fontes e referências: