问题

在方法名上添加了注释,但鼠标放到调用方法名上时,Intellij IDEA默认没有显示。

 

解决方案

打开file->settings 的editor下的 General,将show virtual space at file bottom 和show quick documentation on mouse move 这两项打钩起来。

Intellij IDEA:显示方法注释内容_方法名

确定后,方法名就可以显示注释了。