Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Jintin/Swimat

An Xcode formatter plug-in to format your swift code.
https://github.com/Jintin/Swimat

formatter swift swimat xcode xcode-extension xcode-plugin

Last synced: about 2 months ago
JSON representation

An Xcode formatter plug-in to format your swift code.

Lists

README

        

# Swimat

[![Build Status](https://travis-ci.org/Jintin/Swimat.svg?branch=master)](https://travis-ci.org/Jintin/Swimat)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e3a2fb6a6ba34b11836d58cee0668fb9)](https://www.codacy.com/app/Jintin/Swimat?utm_source=github.com&utm_medium=referral&utm_content=Jintin/Swimat&utm_campaign=Badge_Grade)
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/matteocrippa/awesome-swift)

[![github](https://img.shields.io/github/release/Jintin/Swimat.svg)](https://github.com/Jintin/Swimat/releases/latest)
[![homebrew-cask](https://img.shields.io/homebrew/v/swimat.svg)](https://caskroom.github.io/)

Swimat is an Xcode plug-in to format your Swift code.

## Preview

![](./README/preview.gif)

## Installation

There are three way to install.

1. Install via [homebrew-cask](https://caskroom.github.io/)

```bash
# Homebrew previous version
brew cask install swimat
```
```bash
# Homebrew latest version
brew install --cask swimat
```

2. Download the App directly.

3. Clone and archive to Mac App by yourself.

## Usage

**After installation, you should open the `Swimat.app` once to make the functionality works.**

In the Xcode menu click **[Editor] -> [Swimat] -> [Format]** then the current active file will reformat.

You can also create a hot-key in **[Xcode] -> [Preferences..] -> [Key Bindings]**, if you don't have any prefernce you can set as + + L.

## TroubleShooting

Check [System Preferences] -> [Extensions] -> [Xcode Source Editor] -> [Swimat] is checked. ![](./README/setting.png)

## Contributing

Bug reports and pull requests are welcome on GitHub at .

## License

The module is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).