下面的操作可以将不是很主要的代码折叠起来,idea社区版亲测有效 // <editor-fold> //java代码。。。 // </editor-fold> 参考链接: https://www.cnblogs.com/jiahuafu/p/4384543.html