Visual studio code 将Visual Studio代码中的HTML代码重写为列

Visual studio code 将Visual Studio代码中的HTML代码重写为列,visual-studio-code,Visual Studio Code,我还没有弄明白如何在VisualStudio代码中重写HTML代码。例如,如果我有: <html> <p> This long paragraph should wrap at some column I can define but I couldn't find a way to get it to wrap. Searched for an extension but couldn't find one. <

我还没有弄明白如何在VisualStudio代码中重写HTML代码。例如,如果我有:

<html>
   <p>
       This long paragraph should wrap at some column I can define
       but I couldn't find a way to get it
       to wrap. Searched for an extension but couldn't find one.
   </p>
</html>


这一长段应该在我能定义的某一列结束
但是我找不到一个方法来得到它
包装。已搜索扩展名,但找不到扩展名。

我真的想要这个:

<html>
   <p>
       This long paragraph should wrap at some column I can define but I couldn't find a way to 
       get it to wrap. Searched for an extension but couldn't find one.
   </p>
</html>


这一长段应该在我能定义的某个专栏中结束,但我找不到一个方法
把它包起来。已搜索扩展名,但找不到扩展名。


这是否回答了您的问题:不,这不会重新包装。这只会限制线的长度。重新格式化代码不会改变标记中的任何内容。这是否回答了您的问题:不,这不会重新包装。这只会限制线的长度。重新格式化代码不会改变标记中的任何内容。