1,打开并依次选择:File > setting > Editor > General > Code Folding,在下图的红框中选择想要自动折叠的代码 image.png 2,代码自动换行,右键点击行数栏,点击 Soft-Wrap 选项 image.png