Giter VIP home page Giter VIP logo

formatter-astyle's Introduction

THIS EXTENSION IS NOT IN ACTIVE DEVELOPMENT

I'm not mantaining this extension anymore, please feel free to fork if you think it's still useful.

formatter-astyle

An Atom Formatter provider built for Artistic Style (astyle).

by default will look for a .astylerc configuration file in the project root folder.

If any configuration is set the default load of the file is disabled and a file can be loaded in the 'options file' section.

Installation

Prerequisites

Before installing anything for Atom, install Artistic Style.

Important to Windows users

In Windows, you should make sure that astyle.exe is visible to formatter-astyle, so that formatter-astyle can execute astyle.exe to actually format the code.

You have two ways to do that.

  1. The first way: Set the path of astyle you downloaded in the Settings page of formatter-astyle in Atom.

    For example:

    Example of set the path of astyle

  2. The second way: Copy astyle.exe into a folder that is included in the Path environment variable.

    You may want to create a new folder and add it to the Path environment variable, then copy astyle.exe into it. Click here for more infomation about how to add a folder to the Path enviroment variable.

Install formatter-astyle

In your terminal:

apm install formatter
apm install formatter-astyle

In Atom, install formatter and formatter-astyle from your settings view.

IMPORTANT

Depends on astyle 2.04, there is a bug in text pipe in earlier versions

This package is a fork of formatter-clang-format, all credits to him, I just wanted to run astyle. ;-)

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.