vscode html提示红线,且保存会自动换行?怎么修改?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
prettierrc.json 是这样配置的?
{
"useTabs": true,
"tabWidth": 2,
"jsxSingleQuote": false,
"singleQuote": false,
"endOfLine": "lf",
"semi": true,
"trailingComma": "es5"
}
是其他配置影响的,是否有eslint或voter,你提供的配置项没有关于HTML格式的