How do I replace a newline in Atom?
Solution 1:
Looks like Atom matches newlines as \r\n
but behaves inconsistently when replacing just the \n
with nothing.
So newlines seem to match \s+
and \r\n
, and only "half" of the line-ending matches \n
.
- If you replace
\n
with a string, nothing happens to the line-ending, but the string is appended to the next line - If you replace
\r
with a string, nothing happens at all, but the cursor advances.
Solution 2:
It's alittle bit late to answer but i use following term to search and it works with Atom v1.19.7 x64
\r?\n|\r
BR