Settings→Editor→General先选中Allow placement of caret after end of line再修改Strip trailing spaces on Save,选择All即可 来自为知笔记(Wiz)