[Xcode] Trailing whitespaces

XCode trick

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]+$

This is the result:


enjoy.

Ref: albertopasca.it

 

Alberto Pasca

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