本文会记录常用Eclipse和IDEA的快捷键
1. 如何生成方法注释
/**
* some comments about the method
* @param userInputxxx
* @return valueyyy
*/
在IDEA中:
IDEA Creating Documentation Comments:链接
Type the opening block comment /**, and press ⏎.
即输入/** 然后按回车键
在Eclipse中:
Alt +shift +j
2. 快速自动生成接口方法
在Eclipse中:
光标移动至实现类的方法名,按下Ctrl + 1
例如,PefScorePubServiceImpl implements PefScorePubService
1)光标移至queryPefScorePub方法
2)按下Ctrl + 1,根据提示选择最后一项
3)该方法自动在接口中生成