Formatter for C, C++, Objective-C, Java, Javascript, and Protobuf.
This Formatter plugin for Formatter provides an interface to clang-format.
Install clang-format (ex: on OSX with brew -> brew install clang-format
)
Install Formatter package via Atom
apm install formatter
Install formatter-clangformat package via Atom
apm install formatter-clangformat
Default (inspired from IntelliJ):
'atom-text-editor':'alt-ctrl-l': 'formatter:format-code''alt-cmd-l': 'formatter:format-code'
Path to the exectuable
C language
Enable formatter for C language (need restart Atom)
Arguments passed to the formatter C language
-assume-filename=/usr/local/mycfg/c/.clang-format
C++ language
Enable formatter for C++ language (need restart Atom)
Arguments passed to the formatter C++ language
-assume-filename=/usr/local/mycfg/cpp/.clang-format
Objective-c language
Enable formatter for Objective-c language (need restart Atom)
Arguments passed to the formatter Objective-c language
-assume-filename=/usr/local/mycfg/objc/.clang-format
Java language
Enable formatter for Java language (need restart Atom)
Arguments passed to the formatter Java language
-assume-filename=/usr/local/mycfg/java/.clang-format
Javascript language'
Enable formatter for Javascript language (need restart Atom)
Arguments passed to the formatter Javascript language
-assume-filename=/usr/local/mycfg/js/.clang-format
Protobuf language'
Enable formatter for Protobuf language (need restart Atom)
Arguments passed to the formatter Protobuf language
-assume-filename=/usr/local/mycfg/proto/.clang-format
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
See LICENSE.md
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.