How do I convert code from a column:


to in a row (with spaces):

1 2 3 4

using Notepad++ ?


Select to suit, Search, Replace \r\n with 'space' (using Extended).

Notepad ++ puts a carriage return and a line feed at the end of each line (automatically when Enter is pressed). These can be displayed if Show All Characters is toggled (the pilcrow – ‘¶’, like a reversed P) and in Extended Mode accessed with \r for return and \n for new line. To substitute these two control codes with a space just place them in Find what : and hit Space in Replace with ::

SU598241 example

  • I try to use your way but it lost space between two character same 1234 May 21 '13 at 18:58
  • Thank , I will do it with two step 1. replace \r\n by one string. After that replace string by space. May 21 '13 at 19:03
  • +1 because your name is "pnuts" and to give this answer a score of 10! Feb 11 '17 at 2:21

Here's what I do for that :

  1. Ctrl + A: selects all.
  2. Ctrl + J: aligns them in a row.
  • I agree, this is the best answer.
    – Cold
    Feb 18 '14 at 9:30
  • This is nice, although it doesn't work as expected when there are multiple columns. I know it wasn't asked for by OP, I'm just saying.
    – Homer
    Mar 26 '14 at 18:12
  • to whoever wonders, this can be found under Edit->Line Operations->Join Lines
    – mihail
    Mar 5 '19 at 8:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.