简体   繁体   English

解决 VS Code 中的 CSS 换行问题

[英]Resolve CSS Line Wrapping in VS Code

I'm fairly new to learning coding and I'm trying to figure out how to set up VS Code so that it doesn't wrap HTML tags in CSS.我对学习编码相当陌生,我正在尝试弄清楚如何设置 VS Code,以便它不会在 CSS 中包装 HTML 标签。 I have Prettier installed and set as my default formatter.我安装了 Prettier 并将其设置为我的默认格式化程序。 It won't allow more than one HTML tag on a single line in CSS and I can't figure out why.它在 CSS 的一行中不允许有多个 HTML 标签,我不知道为什么。 Screenshot of wrapping HTML tags in CSS doc在 CSS 文档中包装 HTML 标记的屏幕截图

If you want to un-wrap your code in the editor, just press alt + z in the file you want to (wrap-unwrap) the code.如果你想在编辑器中解包你的代码,只需在你想要的文件中按alt + z (包解包)代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM