标签的内容在特定点后没有在同一行上,而是被添加到下一行。如何在同一行上获取该内容?

Content of tags is not getting on the same line after certain point & it is getting added to the next line . How to get that content on the same line?

我在 VS Code IDE 中编码 HTML & CSS。我已经安装并启用了更漂亮的扩展,以提高代码的可读性和自动缩进。但是我的标签内容不会超出屏幕上的特定点并且每当我通过 Ctrl +S 保存我的代码时它就会被添加到下一行(例如:参见最后一段标签)。如何在同一行上获取该内容?

如果不需要此行为,则不应使用 Prettier。这就是 Prettier 所做的:拆分太长的行。看这里https://prettier.io/docs/en/index.html