一、常用快捷键
1.调出当前类的所有方法以及属性弹框:file structure(ctrl + f12)
2.查看最近编辑:recent locatios(ctrl shift e)
3.增加if/try…catch方法等:surround with(ctrl alt t)
4.返回至上次浏览的位置:forward/back (ctrl alt left/right)
5.查看方法在那里被调用:find usages(alt f7) / (ctrl alt h)/(ctrl b)
6.重构方法/类名:ctrl/shift f6
7.调出自动生成代码弹款:generate(ctrl enter)
8.查找todo标志:todo(ctrl+~)
9.重写父类方法:override methods(ctrl o)
二、idea常见问题解决方案
1.项目中类存在却报红显示不存在;
解决方案(2种):
1.删除再撤回;
2.重建idea索引:File->Invalidate Caches/Restart。