Coder Social home page Coder Social logo

swiftformat-nova's Introduction

SwiftFormat integrates Nick Lockwood's SwiftFormat with Nova.

This extension will run the formatter when a Swift document is saved. It can also be invoked as an editor command.

Installation

If you have Nova installed on your Mac, you can install the extension from the extension library, or using the Install link on Panic's website.

The SwiftFormat extension includes a built-in version of the actual formatter tool, so no additional setup is required.

If you would like to use a different version, you can set a path to a custom binary in settings. You might do this if you work on a team and want to ensure that everyone is using a particular version.

Usage

SwiftFormat runs any time a Swift document is saved in Nova, automatically reformatting code according to the default SwiftFormat rules. You can customize the rules by creating a .swiftformat config file in the root of your project.

To run SwiftFormat manually:

  • Select the Editor → SwiftFormat menu item; or
  • Open the command palette and type SwiftFormat

Configuration

To configure global settings, open Extensions → Extension Library... then select SwiftFormat's Settings tab.

You can also configure settings on a per-project basis in Project → Project Settings...

Contributing and Collaboration

I'd love to hear from you! Get in touch via mastodon, an issue, or a pull request.

By participating in this project you agree to abide by the Contributor Code of Conduct.

swiftformat-nova's People

Contributors

padraigk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

swiftformat-nova's Issues

Move to typescript

I want to move this to typescript and a whole build system thing, so future development is nicer and I can easily break things up into testable chunks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.