Transpose column to row

How do I convert code from a column:

1
2
3
4 

to in a row (with spaces):

1 2 3 4

using Notepad++ ?


Solution 1:

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

Solution 2:

Here's what I do for that :

  1. Ctrl + A: selects all.
  2. Ctrl + J: aligns them in a row.