Formatter for Javascript, HTML, CSS, LESS, SASS.
This Formatter plugin for Formatter provides an interface to js-beautify.
Install js-beautify (npm install -g js-beautify
)
Install Formatter package via Atom
apm install formatter
Install formatter-jsbeautify package via Atom
apm install formatter-jsbeautify
Default (inspired from IntelliJ):
'atom-text-editor':'alt-ctrl-l': 'formatter:format-code''alt-cmd-l': 'formatter:format-code'
Path to the exectuable node
Path to the exectuable js-beautify
Javascript language
Enable formatter for Javascript language (need restart Atom)
Arguments passed to the formatter Javascript language
-s, 3, -w, 80
HTML language
Enable formatter for HTML language (need restart Atom)
Arguments passed to the formatter HTML language
-s, 8, -w, 160
CSS language
Enable formatter for CSS language (need restart Atom)
Arguments passed to the formatter CSS language
-config=/usr/local/mycfg/css/.jsbeautifyrc
LESS language
Enable formatter for LESS language (need restart Atom)
Arguments passed to the formatter LESS language
-config=/usr/local/mycfg/less/.jsbeautifyrc
SASS language
Enable formatter for SASS language (need restart Atom)
Arguments passed to the formatter SASS language
-config=/usr/local/mycfg/sass/.jsbeautifyrc
[ ] optimize enable config
[ ] cursor position
[ ] more optimization ?
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.