How to disable YAML formatting on Vue SFC

your editor is ruining my Yaml configs when you press option-command-l to format code

 

<route lang="yaml">
meta:
auth: true
potato: delicious
</route>

 

becomes

 

<route lang="yaml">
meta:
auth: true
potato: delicious
</route>

Which breaks the YAML. How do I disable this

0
1 comment

You can try injecting YAML in your tag by creating a custom injection in Settings | Editor | Language Injections - the code fragment will be formatted correctly then:

0

Please sign in to leave a comment.