There's a setting for this in the new IDE that you have set "wrong" relative to the AFNetworking sources. In Text Editing, turn on: While Editing: Automatically trim trailing whitespace **Including whitespace-only lines**.