I have researched it. Most post said this way:
C-SPC C-n M-w
It works. But in my case. It only copied a block where the cursor moved. Not the whole lines area I want.
For example, the source below:
1 def hi(): 2 print("hi") 3 . print("hi") 4 print("hi") ----------col:16
The operations I did:
- At the beginning of line 1, click
C-x SPC(Because I'm using macOS so
C-SPCnot work, the keys are conflict)
- Move down using
C-nuntil line 4
C-eto the end of the last line ensure to get all the area I want
- Finally click
M-wto copy them.
- Paste them at other area by
C-y. The line 1 likes
def hi():_____with visible space
I can copy the content until col 16, but without the area afterward. So if I paste the content somewhere, the layout went bad.