Is there a way to make whitespace visible in the Xcode editor?

Viewed 32233

I want the tabs and spaces to be visible in Xcode. Is this possible? I can't find it under preferences.

7 Answers

Since Xcode 11:

In the menu check/uncheck: Editor -> Invisibles

It is under Editor -> Invisibles. You can check it to show or uncheck it to hide them.


A note about the macOS 

In the mac environment, you can search for any menu option under the Help menu, then it will open the exact menu path you are looking for. For example, searching for invisibles results in this:

Demo

In Xcode 6.x and earlier:

View -> Text -> Show Spaces

View -> Text -> Show Control Characters

Related