file–>setting–>code style–>Line separator,选中需要替换的分隔符类型 注意: Line separator下面有行小字,applied to new files,意味着该处设置只针对于新增的文件。