3 ms·
Doesn't the menu of possible code transformations become somewhat large after a while? See also the comment somebody made here about the problem of huge code b
by Roboprog 14y ago
Doesn't the menu of possible code transformations become somewhat large after a while? See also the comment somebody made here about the problem of huge code bases. (I understand that these are usually inherited, rather than created, but they are still a problem, not a virtue)
Does the IDE have a menu item / command to move 3 lines up into the end of this if/else block?
There are 2 ways to look at this problem, specialized IDE vs generalized editor. Both are right, at times. (I personally like to use the vim plugin within NetBeans)
Oh, example of moving the lines just after an if/else into the block:
(assuming sitting on the first line of to-be-moved text, which is just after a close-curly or end line)
Delete the 3 lines: 3 d d
Move back up 2 lines: k k
Paste the 3 lines: p
Indent the 3 lines: 3 > >
9 keypresses, no reaching for the right side of the keyboard, let alone a mouse. About is fast as you can think it, the block of lines disappear, the cursor moves back to the new block, the lines reappear, and then slide right. (ignoring the clumsy autoformat that most IEDs, er, IDEs want to inflict upon your code, I'll do the indent myself, just 3 keypresses)