How to get smart tabs ("indent with tabs, align with spaces") behavior in Xcode?

FreeNickname picture FreeNickname · Apr 25, 2013 · Viewed 31k times · Source

I used to use tabs for indentation and spaces for alignment. Like so (arrows show tabs and dots show spaces).

enter image description here

In QtCreator you can set such coding style in standard preferences. I can't find the way to achieve the same goal in Xcode. Could you please tell me if it is possible? May be there is a plugin for that?

UPDATE: Here is how it can be achieved in QtCreator: enter image description here

P.S. Please, don't try to persuade me that using spaces only/tabs only is better, otherwise this question will turn into another holywar :)

Once more about what I'm trying to achieve: Indent with tabs, align with spaces. Vim Tips Wiki.

UPDATE 2: I've just submitted an Apple Radar bug-report (enhancement) rdar://22285639. Here it is on the open radar.

UPDATE 3: I received an answer from Apple. My bug is a duplicate of rdar://8165023.

Answer

Undo picture Undo · Apr 28, 2013

In Xcode > Preferences (,):

> Text Editing > Indentation

If I understand your question correctly, this should do it for you.