You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use SwiftFormat with a "format on save" capability. However, as Xcode does not natively support this functionality, it requires manual implementation using a file watcher.
One current workaround involves using a file watcher that employs Apple Script to simulate a click on the Editor > SwiftFormat > Format File menu option in Xcode. While this approach works, the limitation is that "SwiftFormat for Xcode" cannot detect the .swiftformat configuration file.
Would it be possible to either:
Extend "SwiftFormat for Xcode" to load a configuration file programmatically, perhaps through a CLI command? This would allow the watcher script to locate the configuration file, load it into "SwiftFormat for Xcode," and then simulate the menu interaction.
Or, incorporate native file watcher functionality into "SwiftFormat for Xcode"? This could include a feature allowing users to select a project folder, at which point the application would automatically load the configuration file (if available) and initiate the watcher.
The text was updated successfully, but these errors were encountered:
I would like to use SwiftFormat with a "format on save" capability. However, as Xcode does not natively support this functionality, it requires manual implementation using a file watcher.
One current workaround involves using a file watcher that employs Apple Script to simulate a click on the
Editor > SwiftFormat > Format File
menu option in Xcode. While this approach works, the limitation is that "SwiftFormat for Xcode" cannot detect the.swiftformat
configuration file.Would it be possible to either:
The text was updated successfully, but these errors were encountered: