Settings→Editor→General先选中Allow placement of caret after end of line再修改Strip trailing spaces on Save,选择All即可 来自为知笔记(Wiz) 转载于:https://www.cnblogs.com/jeffen/p/6014868.html