1、Settings→Editor→General2、先选中Allow placement of caret after end of line3、再修改Strip trailing spaces on Save,选择All即可. 标签: PhpStorm