Here are some very useful tips for Emacs, regarding swapping.
SWAP WORDS:
If you have a text like the following and you want to change the order of the parameters for the foo function:
foo(First, Second) ->;
ok.
Just put the cursor on the comma or on the space between First and Second and press:
M-t
You will get the following:
foo(Second, First) ->;
ok.
SWAP LINES:
Start from:
First Line
Second Line
Put the cursor at the beginning of the second line and press:
C-x C-t
You will get:
Second Line
First Line
Easy, right?
Discussion
No comments yet.