Solve the problem of ending tag > line break when prettier formats code

Modify the prettier configuration file and add the following settings:

"prettier.htmlWhitespaceSensitivity": "ignore",
"prettier.bracketSameLine": true,

Supongo que te gusta

Origin blog.csdn.net/xjtarzan/article/details/130763004
Recomendado
Clasificación