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):

  1. put caret on method name line or anywhere inside method itself
  2. ctrl + minus
  3. ctrl + d
  4. ctrl + plus

or make macro @crazycoder suggested.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -