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

formatting work different after I update volar #2063

Closed
shuwanghu opened this issue Oct 25, 2022 · 7 comments
Closed

formatting work different after I update volar #2063

shuwanghu opened this issue Oct 25, 2022 · 7 comments
Labels
question Further information is requested

Comments

@shuwanghu
Copy link

shuwanghu commented Oct 25, 2022

In previous versions of Volar, formatting work like this:

<component :prop1=''
    :prop2=''
    :prop3=''
    :prop4=''
    :prop5=''
>
</component>

but now , it work like this:

<component :prop1='' :prop2='' :prop3=''
    :prop4='' :prop5=''>
</component>

I want go back to the frist , what should I do
(ps: my English is not good , forget Syntax error in the issue,thanks)

@shuwanghu
Copy link
Author

I realy need help , my team are suffering by this

@ms-mayya
Copy link

You can downgrade to last version of Volar before update.

@RJM1996
Copy link

RJM1996 commented Oct 26, 2022

maybe you can use Prettier to format code

@shuwanghu
Copy link
Author

You can downgrade to last version of Volar before update.

I don't know what the version before I update

@shuwanghu
Copy link
Author

maybe you can use Prettier to format code

thrank for you advise.I never use prettier before,I don't know it's config. I don't want to spend long time to find out how config prettier that can make it work as I want, because volar work good except this problem. but if the problem can't resolve for long time,I will try prettier.

@johnsoncodehk johnsoncodehk added the question Further information is requested label Nov 8, 2022
@mech01nc01
Copy link

mech01nc01 commented Dec 27, 2022

you could also use this setting in vscode:
"html.format.wrapAttributes": "force-aligned"

maybe also:
"html.format.wrapLineLength": 0

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

No branches or pull requests

5 participants