在用source insight 写代码后提交git,如果有一些多余的空格不删除就提交会出现标红的界面:
在source insight 中可以设置保存时自动去除多余的空格:
Options-->>Files-->>Remove extra white space when saving 勾选即可