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

https://github.com/tonycoco/prettyswift

Xcode Source Editor Extension that formats and lints your Swift code. It uses swift-format to format or lint and takes a zero-configuration approach.
https://github.com/tonycoco/prettyswift

format lint macos xcode xcode-extension

Last synced: 6 months ago
JSON representation

Xcode Source Editor Extension that formats and lints your Swift code. It uses swift-format to format or lint and takes a zero-configuration approach.

Awesome Lists containing this project

README

          

# PrettySwift for Xcode

PrettySwift is a Xcode Source Editor Extension that formats and lints your Swift code. It uses `swift-format` to format or lint and takes a zero-configuration approach.

## Installation

To install PrettySwift for Xcode, download it from the Mac App Store. Then, open the app and follow the instructions.

[![Download on the Mac App Store](https://developer.apple.com/assets/elements/icons/download-on-the-mac-app-store/download-on-the-mac-app-store.svg)](https://apps.apple.com/app/prettyswift-for-xcode/id6465455455)

## Usage

### Format

To format your code, open a Swift file you want to format and choose `Editor > PrettySwift > Format` from the menu bar.

### Lint

To lint your code, open a Swift file you want to lint and choose `Editor > PrettySwift > Lint` from the menu bar.

### Integration

If you want to use a keyboard shortcut to format your code, you can add one in `System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts`. Click the `+` button, choose `Xcode` as the application, type `Editor->PrettySwift->Format` as the menu title, and then choose a keyboard shortcut like `⌘S`.