[英]Prevent wrapping inline CSS lines in VS Code
I've been working with tailwind for a while, and I'm starting to get annoyed by VS Code wrapping class names to one per line.我一直在使用顺风,我开始对 VS Code 将 class 名称包装为每行一个而感到恼火。 This is what I mean
这就是我的意思
<div
class="
absolute
inset-y-0
right-0
pr-3
flex
items-center
pointer-events-none
"
>
It is indeed more readable, but even short snippets become incredibly long to scroll.它确实更具可读性,但即使是简短的片段也会变得非常长,无法滚动。 I tried every single setting in VScode, (Settings > Html > Format) to no avail.
我尝试了 VScode 中的每一个设置,(设置> Html > 格式)无济于事。 That one specific div does not wrap if I cut the content where "items" ends in items-center.
如果我剪切“项目”以项目中心结尾的内容,则该特定 div 不会换行。 I'd really like to increase the limit if possible.
如果可能的话,我真的很想增加限制。
You need to put them back togather and then use VS code extinsion
called: beautify
for your codes.您需要将它们重新组合在一起,然后使用名为:
beautify
for your code 的VS code extinsion
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.