Trim trailing spaces in Xcode

后端 未结 7 2112

Is there a way to force Xcode to trim trailing whitespaces when I save file?

I\'m using version 3.1.3 if that matters.

7条回答
  •  时光说笑
    2021-01-30 01:22

    The best and easy way without using scripts, hacks and much more. Just go to Find And Replace and press alt/option + space and press space button in the replace bar and then click on replace all. It will replace the whitespaces with normal spaces and the warning/ error will be gone !!

提交回复
热议问题