#vue-format package (https://github.com/LeslieYQ/vue-format)
apm install vue-format
Or Settings/Preferences ➔ Packages ➔ Search for vue-format
It will beautify .vue file for html,css and js
You can also type ctrl-alt-v
as a shortcut or click Packages > vue-format
in the menu.
See Keymaps In-Depth for more details.
For example:
'.editor':'ctrl-alt-b': 'atom-beautify:beautify-editor'
use js-beautify default
See examples/simple-jsbeautifyrc/.jsbeautifyrc.
{"indent_size": 2,"indent_char": " ","other": " ","indent_level": 0,"indent_with_tabs": false,"preserve_newlines": true,"max_preserve_newlines": 2,"jslint_happy": true,"indent_handlebars": true}
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.