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 |
Using the ColdFusion Report Builder – Part 2: Creating Charts in Reports
Roman Smolkin said: I am fairly seasoned CF developer with MS SQL 2008, but never had to use the Report Builder until no...
[More]
Issue with Ehcache and ColdFusion Query Objects
Ben Nadel said: I think this is almost a case of knowing too much about caching :) By that, I mean that I would susp...
[More]
Issue with Ehcache and ColdFusion Query Objects
Luis Majano said: Totally understandable Rob!! The docs definitely need this kinda input for sure.
By the way, I will...
[More]
Issue with Ehcache and ColdFusion Query Objects
Rob Brooks-Bilson said: Luis, makes perfect sense (now). My stumbling block was that I didn't realize that Ehcache was desi...
[More]
Issue with Ehcache and ColdFusion Query Objects
Luis Majano said: Rob, this is also due to the nature of strong references the objects have. If copy on write is enab...
[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.