Format html code in Visual Studio Code such that attributes are on separate lines?

前端 未结 4 1191
梦如初夏
梦如初夏 2020-12-25 10:22

There seems to be a lack of formatting settings for vscode. I want to be able to format html such that my html shows up as:

4条回答
  •  天涯浪人
    2020-12-25 11:01

    My extended html was being limited by the "Prettier: Print width" setting, I thought I'd put a random value as 0, but then all the tags start breaking the attributes. So he put 10,000. This solved my problem.

提交回复
热议问题