Is any way to autoformat a source code in the Xcode IDE?
To change, go to xCode => Preferences => Text Editing => Indentation => Automatically indent based on syntax.
enter link description here