Xcode source automatic formatting October 19, 2022 by Tarik That’s Ctrl + i. Or for low-tech, cut and then paste. It’ll reformat on paste.