How to get smart tabs (“indent with tabs, align with spaces”) behavior in Xcode? August 22, 2023 by Tarik In Xcode > Preferences (⌘,): If I understand your question correctly, this should do it for you.