Skip to content

New option to separately control script/template/style format #5293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhaojjiang opened this issue Mar 22, 2025 · 1 comment
Open

New option to separately control script/template/style format #5293

zhaojjiang opened this issue Mar 22, 2025 · 1 comment

Comments

@zhaojjiang
Copy link

What problem does this feature solve?

Vue.Volar use vscode built-in language features for html/css formatting, but there are a little conflicts with eslint rules.

Is it possible to set Vue.Volar only take over style part? Then we can safely use eslint-plugin-vue to format script and template, and keep using built-in css formatter for style.

What does the proposed solution look like?

{
  "vue.format.takeOver": {
    "script": false,
    "template": false,
    "style": true
  }
}
@zhaojjiang
Copy link
Author

zhaojjiang commented Mar 30, 2025

It would be better if it is possible to config Vue.Volar to use different formatter (built-in/third-party) for script/template/style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant