XCode – Search project whitespaces

You want to remove the whitespaces at the end of the rows in your code?

Push CMD+SHIFT+F to open global search, select from the Icon “Show find options” and select “Regular Expression“:

[ \t]+$

Here the result:

enjoy cleaning!


Alberto Pasca

Software engineer @ Pirelli & C. S.p.A. with a strong passion for mobile  development, security, and connected things.