Skip to content
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

html.format.wrapAttributes configuration is invalid for vue file #4212

Closed
satrong opened this issue Apr 5, 2024 · 2 comments
Closed

html.format.wrapAttributes configuration is invalid for vue file #4212

satrong opened this issue Apr 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@satrong
Copy link

satrong commented Apr 5, 2024

My vscode config:

{
  "html.format.wrapAttributes": "preserve-aligned"
}

but, here override the configuration of vscode (wrapAttributes is always 'auto'):

return {
...options,
...formatSettings,
wrapAttributes: 'auto',
unformatted: '',
contentUnformatted: blockTypes.join(','),
endWithNewline: options.insertFinalNewline ? true
: options.trimFinalNewlines ? false
: document.getText().endsWith('\n'),
};

Is there any other way besides using a third-party plugin to make my vscode configuration take effect?

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Apr 7, 2024
@johnsoncodehk
Copy link
Member

In next release you can use "vue.format.wrapAttributes": "preserve-aligned".

@satrong
Copy link
Author

satrong commented Apr 7, 2024

👍

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

No branches or pull requests

2 participants