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!
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Caching Enhancements in ColdFusion 9 - Part 6: Configuring Caches and Working with ehcache.xml
pat branley said: Hi Rob
Love your posts on ehcache and cf9. One thing i would love to know about is exactly how you ...
[More]
Connect to DB2 on an AS400 (iSeries)? Then I want to hear from you!
as400 rpg said: I think I will be doing this very soon so will be back to get some tips!
[More]
Summary of Third Party CFC Documentation Tools
Rocky Madden said: Though it has no support, currently, for interfaces, ColdDoc is a great alternative for generating d...
[More]
How to Safely Move Your iTunes Music Directory to a New Drive
Rob said: Rob,
Do you happen to know where the video DRM info is stored on iTunes? I've bought several seaso...
[More]
Intermittent Apache Problems and "winnt_accept: Asynchronous AcceptEx failed"
Tarquin said: Thanks for this - it fixed my problem.
[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.