wimat,帮你一键格式化 swift 代码的 Xcode 插件

jopen 9年前

Swimat

wimat,帮你一键格式化 swift 代码的 Xcode 插件

Preview

62df810fjw1f118zh6p8mg211o0lgq8h.gif

Installation

There has two way 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.

Usage

In the menu open [Edit] -> [Swimat] -> [Format] or press hot-key(command+option+shift+L).

Configuration

There are preferences in [Edit] -> [Swimat] menu you can set:

  • Indent type(tab, 2 space, 4 space)
  • Auto format when save swift file

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Jintin/Swimat.

License

The module is available as open source under the terms of the MIT License.

项目地址: https://github.com/Jintin/Swimat