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.
- Host: GitHub
- URL: https://github.com/tonycoco/prettyswift
- Owner: tonycoco
- License: apache-2.0
- Created: 2023-08-11T15:31:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T17:15:03.000Z (almost 2 years ago)
- Last Synced: 2024-06-17T19:21:17.508Z (almost 2 years ago)
- Topics: format, lint, macos, xcode, xcode-extension
- Language: Swift
- Homepage:
- Size: 4.56 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.
[](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`.