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
[vscode][pug] formatter keep adding spaces in v-for on save #1398
Comments
Hi @chiboreache, I note that formatting trimmed last line space character when you save, but this is not volar behavior. |
|
FOUND! as always it was the m$ issue... even with disabled formatter, it still did its nasty things.... "javascript.format.enable": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": true,
"javascript.format.placeOpenBraceOnNewLineForFunctions": true,
"javascript.format.semicolons": "remove",
"javascript.updateImportsOnFileMove.enabled": "always", so this is the line causing the issue "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true, |
but, it's still your issue ;) |
any progress? |
I still have the same issue |
save overhere... any progress? |
same here in html template <v-list>
<v-list-item
v-for=" optionValue in item.option_values "
:key=" optionValue.id "
:title=" optionValue.name "
>
<template #append>
<v-btn
variant="text"
color="dark"
size="small"
>
<v-icon :color=" optionValue.blacklist?.length ? 'error' : 'grey' ">
mdi-cancel
</v-icon>
<p
v-if=" optionValue.blacklist?.length "
class="text-caption"
>{{ optionValue.blacklist?.length }}</p>
</v-btn>
</template>
</v-list-item>
</v-list> It also keeps adding spaces also in other props! |
Same over here... |
This bug is still exists. I'am using version 1.8.27. |
However this article could be a good alternative: https://dev.to/tao/adding-eslint-and-prettier-to-nuxt-3-2023-5bg |
Setting these two to false did it for me: "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false, |
i still have the issue
|
rec-2022-06-05_04.45.52.mp4
The text was updated successfully, but these errors were encountered: