英文:
vscode snippet in html attribute, how?
问题
是在光标位于HTML属性内部时触发片段可能吗?我已经设置了一些HTML片段,它们在HTML文件中可以正常工作,但在属性内部却无法工作。这是否可能?
英文:
is it possible to trigger snippets when the cursor is inside html attributes? I've setup some html snippets which work fine in the html file, but not inside the attributes. Is that possible?
答案1
得分: 1
将设置中的Editor: Quick Suggestions
更改为启用strings
。
将鼠标悬停在strings
值上,右侧将出现一个铅笔编辑选项,单击它以选择on
。
由于HTML属性包含在字符串中,您需要进行此更改。
英文:
Change the setting
Editor: Quick Suggestions
to enable strings
Mouse over the strings
value and a pencil edit option will appear on the right side, click it so you can choose on
.
Since the html attributes are enclosed in strings, you need to make this change.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论