Newbie needs Xcode editor automatic code re-format

I am a newbie on Xcode/swiftUI. It is difficult to keep the editor code aligned properly. I know I can select the code I want to reformat and the use ctrl+I to re-indent it, but that is pretty inconvenient.

Not many bells and whistles are needed, but automatic code formatting is a must.

Is there an extension for the Xcode editor that will automatically indent the code properly as it is typed?

TIA!

Look in Xcode's settings, in the "Text Editing" tab. There's a bunch of settings there to indent code, insert closing braces etc.

Well now you have it built in! Editor -> Structure -> Format File

Newbie needs Xcode editor automatic code re-format
 
 
Q