FileXD FileXD

X-SwiftFormat 2.1 for Mac Free Download

X-SwiftFormat is a small Mac application that brings Apple's swift-format tool into Xcode as a source editor extension.

X-SwiftFormat 2.1 for Mac Free Download Screenshot

Overview

X-SwiftFormat is a small Mac application that brings Apple's swift-format tool into Xcode as a source editor extension. Version 2.1 is the current release, it is open source under the MIT licence, and it exists to answer one request every Swift developer has had at some point: make this file consistently formatted without leaving the editor. The application itself is the control panel for the extension. Open it once after installing and it registers with the system, and from then on a Format Swift Code command appears in Xcode's Editor menu. The window is where you decide what formatting means for your code: maximum blank lines, line length, tab width, whether indentation uses spaces and how many, whether existing line breaks are respected, and how line breaks behave around control flow keywords, arguments and generic requirements. Each rule is a checkbox or a value, so a team can build its style by turning options on and off rather than by writing a configuration file by hand. When the configuration is the way you want it, the app can export it as a .swift-format file, which is the format Apple's tool reads, so the same style can be committed to a repository and reused on other machines or in continuous integration. A preview window is built in. Paste or open a Swift file, press Format, and the window shows the code as the current rules would rewrite it, with an option to show invisible characters so whitespace decisions are visible instead of guessed. That makes it practical to tune a rule and see its effect immediately, before applying it to a real project. Configurations are organised as environments, so a project style and a personal style can live side by side and be switched from a menu rather than rebuilt each time. A second tab collects the fine grained rules that swift-format exposes, and the version of the bundled engine is shown in the window, so there is no ambiguity about which formatter produced a given result. Using it day to day is simple. After the first launch, enable X-SwiftFormat under Privacy and Security, Extensions, Xcode Source Editor in System Settings, then use the command from Xcode's Editor menu on the file you are editing. The project documents how to bind the command to a keyboard shortcut through App Shortcuts in System Settings, so formatting a file becomes one keystroke. Underneath, the formatting engine is Apple's own swift-format, so the output follows the same rules as the command line tool rather than a private reimplementation. The download is a 7 MB zip; unzip it, move X-SwiftFormat into the Applications folder and open it once. macOS 14 or later is required, and Xcode must be installed for the extension to have anything to format. Because the extension works inside Xcode's source editor sandbox, formatting applies to the file open in the editor, and the result is an ordinary edit: undo works as it always does, so a rewrite you do not like is one shortcut away from gone. The repository carries fuller documentation for anyone who wants every rule and every environment option explained. System Requirements OS: macOS 14 or later, Xcode installed Download: 7 MB zip, unzip and drag to Applications License: MIT Source: github.com/ruiaureliano/X-SwiftFormat Download source: X-SwiftFormat official GitHub release.

Product Information

  • Version: 2.1
  • Platform: Mac
  • File Size: 7 MB
  • Developer: Rui Aureliano
  • License: Open Source

Frequently Asked Questions

Who is the developer of X-SwiftFormat 2.1 for Mac Free Download?
X-SwiftFormat 2.1 for Mac Free Download is developed by Rui Aureliano. Official store and developer details are available at github.com.
What are the minimum specifications for X-SwiftFormat 2.1 for Mac Free Download?
The system requirements for X-SwiftFormat 2.1 for Mac Free Download are: macOS 14 or later, Xcode
Can I use X-SwiftFormat 2.1 for Mac Free Download for free?
X-SwiftFormat 2.1 for Mac Free Download is released under the Open Source open-source license, allowing users to inspect, use, and modify the software.
What is the latest supported version and platform for X-SwiftFormat 2.1 for Mac Free Download?
X-SwiftFormat 2.1 for Mac Free Download is currently available for Mac on version 2.1, with an estimated download size of 7 MB.
What languages does X-SwiftFormat 2.1 for Mac Free Download support?
X-SwiftFormat 2.1 for Mac Free Download supports the following languages: English.
What is the primary function of X-SwiftFormat 2.1 for Mac Free Download?
X-SwiftFormat is a small Mac application that brings Apple's swift-format tool into Xcode as a source editor extension.

Download (7 MB)

Related Software & Downloads