GithubHelp home page GithubHelp logo

isabella232 / ceylon.formatter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eclipse-archived/ceylon.formatter

0.0 0.0 0.0 3.62 MB

A formatter for the Ceylon programming language, written in Ceylon.

License: Apache License 2.0

Shell 0.65% Ceylon 99.35%

ceylon.formatter's Introduction

Ceylon Formatter

Build Status

A source code formatter for the Ceylon programming language.

Current status

Version 1.3.3 has been released and is available on Herd. There are no immediate plans for changes; the next release will probably be for bugfixes, or to support new language features, or for a new binary version of Ceylon.

Building

With ant

git clone https://github.com/eclipse/ceylon.formatter
cd ceylon.formatter
ant install

The buildfile assumes that ceylon-dist (including the Ceylon ant files) is a sibling folder; otherwise, you might have to adjust the paths in build.properties.

With the IDE

  1. Install the Ceylon IDE, following these instructions
  2. Clone the repository locally
  3. In Eclipse, go to File -> Import... -> Existing Projects into Workspace, then choose the location of the ceylon.formatter repository and import the ceylon.formatter project
  4. Run source_gen.ceylon.formatter.run() from the source-gen source folder (ignore the warning that the project has build errors, that’s exactly what this is going to fix)
  5. Right-click the test.ceylon.formatter module and choose Run As -> Ceylon Test to test if everything works

Restoring pre-1.3.3 history

Optionally, you can run the following command in your clone of the repository to restore older Git history:

git fetch origin 'refs/replace/*:refs/replace/*'

Usage

The formatter is part of the Ceylon IDE. You can format any source file by hitting Ctrl+Shift+F, or selecting Source > Format from the menu.

You can also run the formatter from the command line:

ceylon format source # to format all Ceylon code in source
ceylon format source --to source-formatted # if you’re afraid I might break your code – directory structure is preserved
ceylon format source test-source # to format all Ceylon code in source and test-source
ceylon format source --and test-source --to formatted # to format all Ceylon code in source and test-source into formatted

(Replace ceylon format with ceylon run ceylon.formatter if you don’t have the plugin installed.)

Contact

If you have found a bug or want to suggest a feature, create an issue. You can also send me an e-mail (address is on my Github page).

License

The content of this repository is released under the ASL v2.0 as provided in the LICENSE file that accompanied this code.

By submitting a "pull request" or otherwise contributing to this repository, you agree to license your contribution under the license mentioned above.

ceylon.formatter's People

Contributors

lucaswerkmeister avatar eclipsewebmaster avatar

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.