Sublime Forum

Copy Column... Paste Line

#1

I need to transpose text in column, and paste it in a single adjacent line:
(text has line breaks at the end)
0210F23A44018AE1
8042000000000680
0102192225459999

0210F23A44018AE180420000000006800102192225459999

Any trick or plugin to do this?

0 Likes

#2

Answered my own question…
Do a RegEx Find & Replace, search for \n and replace with “blank”

0 Likes

#3

Another solution without Find & Replace:

  1. Put a cursor at the end of each line (there are many ways to do it. ex: Select text, Split into Lines (CTRL+SHIFT+L) and Right Arrow).
  2. Join Lines (CTRL+J)
  3. Backspace to remove unwanted spaces
0 Likes

How to copy text and paste it in the same line, but to the right of the copied text?