File->Settings->Editor 点击general,如下如所示: 勾选 “ Use soft wrap in editor ” ,这样就可以自动换行了 转载于:https://www.cnblogs.com/zmdComeOn/p/10644024.html