formatter-clangformat

Formatter for C, C++, Objective-C, Java, Javascript, and Protobuf.

gouvinb

13,655

2

1.0.1

MIT

GitHub

This package provides the following services:

formatter-clangformat

Formatter for C, C++, Objective-C, Java, Javascript, and Protobuf.

This Formatter plugin for Formatter provides an interface to clang-format.

Installation

  1. Install clang-format (ex: on OSX with brew -> brew install clang-format)

  2. Install Formatter package via Atom

    • or with apm install formatter
  3. Install formatter-clangformat package via Atom

    • or with apm install formatter-clangformat

Usage

In your source compatible file

Default (inspired from IntelliJ):

'atom-text-editor':
  'alt-ctrl-l': 'formatter:format-code'
  'alt-cmd-l': 'formatter:format-code'

List of config

TODO

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request 😄

License

See LICENSE.md