0

Each time I create a new file in Notepad2, the default line break is Windows-style:
a carriage return (CR) followed by a line feed (LF).
How can I instead set Unix-style line endings (LF) as default?

Henke
  • 1,261

1 Answers1

0

File → Line Endings → Default... → Unix (LF)

File → Line Endings → Default... → Unix (LF).

Tested on Notepad2 version 4.2.25.

Note! In Notepad2.ini, this corresponds to having DefaultEOLMode=1 (typically line 40),
while a fresh installation has DefaultEOLMode=0 (CR+LF).

A related question is How to set Notepad2 to use UTF-8 instead of ANSI,
but that question is about default character encoding rather than the default newline type.

Henke
  • 1,261