[英]How to format HTML code in VS Code on Ubuntu?
I have installed the prettier extension on VS Code and use this shortcut - Ctrl
+ shift
+ I
.我已经在 VS Code 上安装了更漂亮的扩展,并使用了这个快捷方式 -
Ctrl
+ shift
+ I
。 But it doesn't work for me.但这对我不起作用。
Also tried this- Setting the VSCode preference html.format.wrapAttributes
to force
.也试过这个 - 将 VSCode 首选项
html.format.wrapAttributes
设置为force
。 But nothing happens.但什么也没有发生。
If "Format Document" is what you are referring to, you just have to press F1 and search for Format Document
or just press Shift + Alt + F如果您指的是“格式化文档”,则只需按F1并搜索
Format Document
或只需按Shift + Alt + F
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.