vscode-twig-language-2 icon indicating copy to clipboard operation
vscode-twig-language-2 copied to clipboard

Format document: comment block shift right every time

Open palansher opened this issue 3 years ago • 7 comments

issue: during format document: Shift-Alt-F if you have any commented block (html or twig), this block will shift right every time you format document. The result is quite ugly image

image

palansher avatar Jul 08 '22 00:07 palansher

Hi i have the same isssue with vscode 1.69.2. Is there a way to disable comment formatting?

BDZK avatar Jul 21 '22 16:07 BDZK

Same problem here (vscode 1.70.2). Really annoying when using "format on save"... 😕

alexandregaliay avatar Aug 29 '22 16:08 alexandregaliay

Same here! Really annoying indeed

blackbart420 avatar Apr 19 '23 10:04 blackbart420

same here

ImKubass avatar Nov 07 '23 02:11 ImKubass

use <!-- parse-ignore-start --> to disable block formate is work for me

<!-- parse-ignore-start -->
<div v-show="showUser" class="
absolute
top-16
right-0
w-full sm:w-[320px]
px-4 py-4 pb-0">
<!-- parse-ignore-end -->
...
</div>

garryshield avatar Nov 07 '23 07:11 garryshield

Any updates on this issue ? The issue still remains

jeanrinvil avatar Sep 02 '24 09:09 jeanrinvil