Skip to content
This repository has been archived by the owner. It is now read-only.
Atom package for formatting code with astyle
CoffeeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
lib
CHANGELOG.md
LICENSE.md
README.md
package.json

README.md

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. ;-)

You can’t perform that action at this time.