Remove Line Breaks with Notepad++

0

Notepad++ is an amazing text and source code editor makes editing text much easier. And lots of features makes repetitive task done within seconds with macros, extended find and replace, and other simple 1 click options. Here is the trick to remove remove line breaks from a text file in Notepad++ with the Find and Replace Option.

An image showing replace text window in Notepad++ to replace line breaks
Notepad++ to replace line breaks

Here are the steps.

  • First add or open your text to Notepad++.
  • Press “Ctrl+H” to open the Find and Replace Window.
  • Select the “Extended” option on the “Search Mode” on the bottom left of the window.
  • On the “Find What” textbox add “\r ” which means carriage return in c programming.
  • On the “Replace With” add a space or a  comma(,) to make the output clearer.

Get your work done fast with this feature on your huge text files or documents.

Previous articleRemove multiple empty lines in code/text at once with Regex
Next articleRemove multiple predefined lines in text file with powershell
I am an science, tech, gadget and coding enthusiast from Nepal. Music and Computers take up much of my time. And I like to hike and travel as often as I can. I started The Jucktion in hopes of creating an hub for information and sharing. Hope you enjoy it as much I enjoy making them. :)