1、首先点击file,然后点击Settings
2、然后选择editor
3、再把“use soft wraps in editor”的勾打上,保存应用,就OK了
4、再打开一个项目看代码是不是已经自动换行了呢?