Latest release of Xcode (4.5) is supposed to strip trailing whitespace from source files.
But when I save a file with some spaces at the end of a line they’re still there.
What am I missing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OK, here’s what the problem was.
Xcode will not trim trailing white space if you add a white space at the end of the line, leave the cursor at the end of that line and then save it.
You need to move your cursor off that line and then save it.
May be some conflict between saving the position of the cursor whilst simultaneously trimming the whitespace perhaps?