。js文件中HTML片段的VSC扩展名

问题描述 投票:0回答:1

我一直在搜寻,但是似乎找不到在.js文件中允许HTML代码段的扩展名。我花了大量时间与JSX一起工作,并且希望使用与.js文件中HTML文件中使用的代码段相同的代码段。

例如:

div.container.foobar
li*4

成为:

<div class="container foobar" ></div>
<li></li>
<li></li>
<li></li>
<li></li>

提前感谢!

javascript html visual-studio-code code-snippets
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.