html formatting in vs-code combines the newline writing of tags into one line. For example,
original
<el-dialog
title=""
:visible.sync="dialogVisible"
width="30%"
:before-close="handleClose">
</el-dialog>
after formatting
<el-dialog title="" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
</el-dialog>
what is the name of the original HTML writing method first? Then how can I set up the format without changing the original line wrapping
now the prettier, used for formatting seems to be merged with beautify. The setting goes like this:
"vetur.format.defaultFormatter.html": "prettier",
format the format of a line. I don"t think it looks good. Ask for advice