1. 安装插件 change-line-endings-on-save 2. 工具-》选项-》编辑器-》Line Endings -> Enable adjusting the line endings 前打勾,然后下面的下拉框选择 Unix(LF)