This may already be obvious to heavy Eclipse/CFEclipse/FlexBuilder users, but there's a really simple way to move one or more lines of code around without having to use copy/paste.
To move a single line of code, place the cursor anywhere on the line and click alt-up arrow to move the code up one line, or alt-down arrow to move the code down one line.
To move multiple lines of code at once, highlight the code you wish to move and use the same alt-up arrow/alt-down arrow shortcut. It's that easy!
Moderating Comments
Jake Munson said: +1 for Akismet. You may also want to combine Akismet with Project Honeypot (google it). It's very ...
[More]
How to Safely Move Your iTunes Music Directory to a New Drive
Brian Woods said: Eh, it didn't work for me. I am left with an iTunes of a couple of dozens songs (down from 9k) and ...
[More]
Moderating Comments
Barney said: I use Akismet and moderating, but have moderation set up to be skipped for people with an already-ap...
[More]
Moderating Comments
Rob Brooks-Bilson said: Hi Barney,
I was thinking Askimet might be the next step. I always hated captcha, and I'm not too f...
[More]
Moderating Comments
Barney said: Yay!! Another CAPTCHA-free blog!!
Have you looked at Akismet? It does a fantastic job, and I beli...
[More]
http://trac.cfeclipse.org/cfeclipse/wiki/ShortcutK...
It's good to review this now and then and learn something new :)
Jim, thanks for the link to the wiki. I skimmed it once, but obviously it never sank in.
EG:
highlight line/block of code then:
- ctrl + alt + up arrow to copy the code above current position
- ctrl + alt + up down to copy the code below current position
Eclipse/CFEclipse/FB2 is great!
Thanks, Rob
Yep, click and drag is supported as well. I just thought it was really cool that you could move one or more lines up or down the way they've implemented it. I find myself needing this sort of functionality more often than I realized.