prettier-plugin-svelte icon indicating copy to clipboard operation
prettier-plugin-svelte copied to clipboard

How to disable or change style autoformat on vscode?

Open oggnimodd opened this issue 2 years ago • 0 comments

I am using tailwind @apply in my svelte file like this

 .title {
    @apply text-red-500;
 }

It's not a problem if I am not using a lot of tailwind classes. But if I need more complex styling , it will become hard to read in one line, so I will write something like this to improve readibility :

 .title {
    @apply 
        flex 
        items-center
        font-bold
        text-3xl
        uppercase
        dark:text-accent;
 }

The problem is svelte vscode formatter will format it again into one line. Is there any setting i can tweak to prevent auto-format or change formatting settings?

oggnimodd avatar May 21 '22 14:05 oggnimodd