problem description
TheVSCode editor uses the Prettier plug-in formatting code. But after formatting, the HTML tags are all on one line.
the platform version of the problem and what methods you have tried
VSCode version 1.30.1 (1.30.1)
related codes
/ / Please paste the code text below (do not replace the code with pictures)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<form action="/search" method="POST">
<div>
<input type="text" name="kw">
</div>
<div>
<button type="submit">Search</button>
</div>
</form>
</body>
</html>
what result do you expect? What is the error message actually seen?
after formatting:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<form action="/search" method="POST">
<div><input type="text" name="kw" /></div> <!-- -->
<div><button type="submit">Search</button></div> <!-- -->
</form>
</body>
</html>
if you set to disable the display of one line, and turn off the end of the automatic label, both functions.