【发布时间】:2020-08-18 23:36:58
【问题描述】:
我的 html 代码在我的角度组件中,我自动拥有:
<a
class="text-sm font-bold leading-relaxed inline-block mr-4 py-2 whitespace-no-wrap uppercase text-white"
href="#pablo"
>
pink Color
</a>
<button
class="cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none"
type="button"
>
<span class="block relative w-6 h-px rounded-sm bg-white"></span>
<span
class="block relative w-6 h-px rounded-sm bg-white mt-1"
></span>
<span
class="block relative w-6 h-px rounded-sm bg-white mt-1"
></span>
</button>
虽然我愿意:
<a class="text-sm font-bold leading-relaxed inline-block mr-4 py-2 whitespace-no-wrap uppercase text-white" href="#pablo">
pink Color
</a>
<button class="cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none" type="button">
<span class="block relative w-6 h-px rounded-sm bg-white"></span>
<span class="block relative w-6 h-px rounded-sm bg-white mt-1"></span>
<span class="block relative w-6 h-px rounded-sm bg-white mt-1"></span>
</button>
我在我的 settings.json 上进行搜索,但我不知道在哪里无法更改...有什么建议吗?
【问题讨论】:
-
如果您对第三方解决方案感到满意,我建议您使用此扩展程序:marketplace.visualstudio.com/items?itemName=HookyQR.beautify
-
是的,我知道如何格式化文档,但如何改变它的行为?
标签: html css angular visual-studio-code tailwind-css