IDEA&Eclipse生成返回值类型的快捷键

eclipse:

光标放在语句上,前边,后边都可以,按Ctrl+1,选择的如图箭头指向的选项回车即可:


或者直接按照提示先按Ctrl+2,然后按L

IDEA:

Ctrl + Alt + V
Put selected expression result into a variable (Refactoring).


参考
https://www.jetbrains.com/help/idea/2017.1/meet-intellij-idea.html
https://www.jetbrains.com/help/idea/2017.1/ctrl-alt.html

你可能感兴趣的:(IDEA&Eclipse生成返回值类型的快捷键)