Skip to content
TabifyIndents for Xcode

TabifyIndents for Xcode

Two Xcode editor commands: turn leading spaces into tabs, or tabs into spaces.

Mac App Store

What it does

TabifyIndents adds Tabify and Untabify to Xcode’s editor menu. Tabify replaces leading space runs with the right number of tabs; Untabify does the reverse. Both respect the indentation width configured for the file.

That is the whole app. It exists because Xcode has no built-in command for it, and a project that mandates tabs will otherwise reject a file a contributor wrote with spaces.

Notes

Like any source editor extension, it must be enabled in System Settings → Login Items & Extensions → Xcode Source Editor before the menu items appear.

Alternative to

AlternativeTypeTrade-off
EditorConfigOpen sourceSets indentation per project so files never arrive wrong
expand and unexpandBuilt inBuilt into macOS, scriptable over a whole tree
SwiftFormat or swift-formatOpen sourceNormalises indentation as part of formatting

Install

TabifyIndents for Xcode on the Mac App Store

Or with mas:

mas install 1179234554

Links

This post is licensed under CC BY 4.0 by the author.
Last updated on