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 -

php - MySQLi multi_query results for later use -