SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Xcode integration / on save / shortcuts

Open findthebug opened this issue 3 years ago • 1 comments

Xcode integration

There should be an official app, we can use to autocorrect single files inside xCode via shortcuts: https://github.com/realm/SwiftLint/issues/538#issuecomment-206095152

Currently, I use this app: https://github.com/sugarmo/XCFormat

With this app installed, i can configure shortcuts in xCode itself to trigger the formatter, e.g. on save or any other defined shortcut. Would be great if we can also have something like.

findthebug avatar Oct 21 '22 06:10 findthebug

There is another solution which works great.

https://github.com/nicklockwood/SwiftFormat#xcode-source-editor-extension

findthebug avatar Oct 21 '22 08:10 findthebug