XCFormat is a free code-formatting tool for macOS that helps you keep source code clean and consistent without leaving Xcode.
XCFormat works as an Xcode Source Editor Extension. Once enabled, it adds formatting commands directly to Xcode’s Editor menu, so there is no need to copy code or switch between apps.
Features:
• Format the active source file
• Format only the selected lines
• Format Swift code with the bundled SwiftFormat engine
• Format Objective-C, C, C++, and other C-style languages with the bundled Uncrustify engine
• Customize formatting rules using configuration files
• Quickly reveal configuration files in Finder
• Restore the default configuration at any time
• Follow the built-in setup guide to enable the Xcode extension
Whether you are working on a personal project or collaborating with a team, XCFormat reduces repetitive formatting work and helps maintain a consistent coding style.
This app hasn’t received enough ratings or reviews to display an overview.
works as advertised
lightly recruited
Much faster to install that compilling from source, or using HomeBrew methods. Note: uses Nick Lockwoods SwiftFormat (7K stars on Github) as opposed to Apple's formatter (2K stars). Fired right up when I followed the simple instructions that appear when launching the app.
Still works amazingly easy
deadbeario
I felt compelled to write this review since there were no recent positive ones. This was exactly what I was looking for worked like a charm.
Wonderfully useful for formatting Swift
MastahProgrammah
v1.2.5 ships with SwiftFormat v0.47.4. Would like to experiment with an update as it's stripping a `let` incorrectly (May be fixed by SwiftFormat GitHub #1017.) Will use XCFormat's exposed YAML Config for SwiftFormat instead to disable my "redundantLet" optimizing.
Works almost!!
Candid Cod3r
The extension works as per the description. I have updated Uncrustify installed on my machine. This extension is not picking up the latest Uncrustify binary. Is there an option to specify it or any work arounds are appreciated. Thank you for making this plugin.
XCFormat has been refreshed for modern macOS and Xcode workflows.
• Introduced a new native SwiftUI interface
• Added a clear step-by-step guide for enabling and using the Xcode extension
• Added direct access to the relevant System Settings page
• Updated SwiftFormat to version 0.61.1
• Updated Uncrustify to version 0.83.0
• Refreshed the default configurations for both formatting engines
• Improved compatibility, signing, and build reliability with current Xcode versions
• Fixed an issue that could cause formatter builds to fail when project paths were too long
Version 1.2.8
The developer, Yojio, Ltd., indicated that the app’s privacy practices may include handling of data as described below. For more information, see the developer’s privacy policy .
Data Not Collected
The developer does not collect any data from this app.
Privacy practices may vary, for example, based on the features you use or your age. Learn More
Accessibility
The developer has not yet indicated which accessibility features this app supports. Learn More