Format single file with '.vue' used in 'vscode' editor. https://marketplace.visualstudio.com/items?itemName=febean.vue-format
If you have some issue, just let me know https://github.com/avrahamba/vue-formatter
Your issue is my force for this project.
Welcome to STAR && FORK
Js-beautify is heavily dependent, so most of them are limited by js-beautify. In theory, the configuration of js-beautify can be applied.
- js-beautify: https://github.com/beautify-web/js-beautify
- pug-beautify: https://github.com/vingorius/pug-beautify
- mac:
cmd+ctrl+f
- win:
alt+ctrl+f
- Use js-beautify's config && pug-beautify's config
- indent_size: default use the "editor.tabSize"
Key | Example | Default |
---|---|---|
vue-format.html_indent_root | false | false |
vue-format.break_attr_limit | 2 | -1 |
vue-format.attr_end_with_gt | true | true |
vue-format.format_need | ["html"] | ["html", "js", "css"] |
vue-format.js-beautify | (See the config at front) | (See the config at front) |
vue-format.pug-beautify | {fill_tab: false} | {fill_tab: false} |
U can see the changelog in CHANGELOG.md