1、首先,打开一个的IntelliJ IDEA的代码工具中
2、进入到了左上角中的 file 的菜单
3、点击了file菜单之后,弹出了下拉菜单选中为 settings选项
4、进入到了的settings界面中,选中左侧中的 code folding 选项
5、选中左侧中的 code folding 选项之后,勾选上 documentation comments选项
6、勾选上 documentation comments选项之后,点击 ok 来保存当前中设置。