Noctule 3.1 improves Swift language support, the Swift formatter, and the integration with external formatter configurations.
Refer to the detailed changelog for the full list. A summary of the changes is below.
Integration with external formatters#
Basic code style settings are now fetched from the configurations of external formatters.
As before, Noctule supports “format on save” with “swift format”, SwiftFormat, and SwiftLint. Previously, settings such as indentation and the maximum line length had to be configured separately, which made editing Swift files inconvenient.
Now Noctule reads the basic formatter settings from the external formatters’ configuration files, for a smoother editing experience.
You can control this at Preferences… → Editor → Code Style → Swift (Noctule), on the Code Style tab. By default, a file’s formatter options are detected automatically, but you can also turn the feature off or choose which formatter to apply.
In an Xcode project, a file’s settings are taken from the Xcode project settings. A new option applies Xcode’s file settings to any file for which a setting is available, not just to Swift files. Enable Preferences… → Editor → Code Style → Enable Xcode project code style support to use it. It is turned off for existing projects and turned on for projects newly imported from Xcode project files.
In an Xcode project, the settings of a file are retrieved from the Xcode project settings. There’s a new setting to apply Xcode’s file settings to any file if a setting is available and not just to Swift. Enable Preferences… → Editor → Code Style → Enable Xcode project code style support to enable this. The setting is turned off for existing projects and turned on for projects newly imported from the Xcode project files.
Swift Formatter#
Many new formatter settings give you more granular control over Swift formatting. This also improves the indentation handling while typing in a Swift file editor.
Swift Language Support#
In general, Swift parsing has been improved, resulting in better highlighting and formatting for a wider range of Swift source code.
Noctule 3.1 improves support for the next major versions of Apple’s operating systems. Swift 6.4 syntax is now better supported.
Xcode toolchains with beta versions such as 27.0 Beta 5 are now detected correctly.
Noctule now asks you to accept the Xcode license and to prepare for first time use if a toolchain is not yet fully initialized.
Fixes and Improvements#
This version of Noctule includes many other fixes and improvements.
Support for Xcode projects and toolchains is better as well. For example, some Xcode projects that couldn’t be imported with earlier versions are now supported.