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

评论操作 固定链接

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

请先登录再写评论。