How to Adjust Indents and Spacing in Xcode

Updated: February 12, 2023 By: A Goodman Post a comment

Xcode is a great IDE (integrated development environment) for developing applications for iOS, macOS, tvOS, watchOS, and iPadOS. This article shows you how to adjust indents and spacing in Xcode 13, Xcode 14, and other later versions step by step.

1. Open your Xcode and go to Xocde > Settings (or Preferences) from the top bar (shortcuts: Command + ,):

2. Select Text Editing from the menu:

3. Select the Indentation tab, then change the number in the text box next to the Tab Width label to your preferred one like 2, 3, etc.

Everything will be automatically saved. Done!

Further reading:

I have made every effort to ensure that every step in this article works properly, but I may have made some mistakes or omissions. If so, please leave a comment to report errors.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments