for example I have this code
categoryCT.getInsertedItems();
and I want shortcut to generate code like this
List<Category> insertedItems= categoryCT.getInsertedItems();
CTRL+2,L and ALT+CTRL+L can get the job done for you. you can press any key of these four as u need it.
Select mymethod() and press ctrl + alt + h .
You can open any method or type in your workspace using the "Open Type" wizard or the "Open Method" wizard. -Or- press Ctrl+Shift+T (for a type) or Ctrl+Shift+M (for a method). The "Open Type/Method" dialog will appear. If a type/method was previously selected in the editor or outline views, it will be displayed.
I don't think I saw Alt+Shift+L
, but that works and if your right-hand assignment is the only thing on the line, you don't even have to highlight it
I'd add for windows users:
Press ctrl+2
for the available options.
For ex. ctrl+2+L
will assign your statement to a local variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With