intellij idea - Duplicate whole method via keyboard shortcut? -
i use ctrl + d copy 1 line of code.
is there keyboard shortcut in idea can put caret on method name , pressing shortcut combination duplicate whole method? ctrl + d not in such case.
until idea not built-in feature this, can use approach (it's pretty quick):
- put caret on method name line or anywhere inside method itself
- ctrl + minus
- ctrl + d
- ctrl + plus
or make macro @crazycoder suggested.
Comments
Post a Comment