# Xcode Text Editing Settings

Use the below settings and I won't have to fight with weird indentation or spacings ^^

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1695303857015/3122e37b-c602-42ab-874a-adda11261d79.png align="center")

Under Editing, be sure to tick `Including whitespace-only lines`. It will make Xcode trim white spaces along the empty lines.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1695303868709/36fcf43d-dc0c-417f-bdc9-683db7b0c95a.png align="center")

Under Indentation, Prefer Indent Using `Spaces`. Ensure that the Tab Key should `Indents in leading whitespace`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1695303878541/07d280a2-3a6d-41cb-88d9-4084de424e11.png align="center")
