Andorkan
Andorkan

Reputation: 117

How to replace \n with new line in Atom

How can I replace all the "\n" occurrences in a text in Atom and turn them into break lines?

I'd like to turn this:

Description:\nEC2

Into this:

Description:
EC2

Upvotes: 1

Views: 2608

Answers (1)

Andorkan
Andorkan

Reputation: 117

I've realized it was simply by activating the "Use Regex" option in Find and Replace (the ".*" button at the right side) and escaping the first \n expression with another backlash.

So, by searching \\n I'll get all the \n occurrences and by replacing them with \n I'll turn them into break lines.

enter image description here

Upvotes: 4

Related Questions