An Xcode plug-in to format your Swift code.
There are two ways to install:
- Use Alcatraz to install and manage plug-ins.
- Clone this repo, build and restart Xcode.
If you encounter any issues you can uninstall it by removing the ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Swimat.xcplugin
folder.
In the menu open [Edit] -> [Swimat] -> [Format] or press hot-key (Command+Option+Shift+L).
There are preferences in the [Edit] -> [Swimat] menu.
- Indent type (tab, 2 space, 3 space, 4 space)
- Auto format when Save or Build
- Indent empty lines
- Remove/Force/Ignore line breaks before opening braces
Bug reports and pull requests are welcome on GitHub at https://github.com/Jintin/Swimat.
The module is available as open source under the terms of the MIT License.