Reputation: 1016
When I type div>label+input+button:submit{Submit}
and press tab
Expected result:
<div>
<label for=""></label>
<input type="text">
<button type="submit">Submit</button>
</div>
Result I get:
<div><label for=""></label><input type="text"><button type="submit">Submit</button></div>
How to fix this problem?
Upvotes: 2
Views: 568
Reputation: 124
Prettier will work but in your json file. you need to do
TLDR; You just need to replace javascript
with the file type you are working in.
"[html]": {"editor.defaultFormatter":"esbenp.prettier-vscode"}
For example I use emmet with razor components. so my json file has this
"[razor]": {"editor.defaultFormatter":"esbenp.prettier-vscode"}
Upvotes: 1