intellij-idea - Intellij 通过插件向 html 标签添加标准属性
问题描述
在 IntelliJ 中,
当我键入<in
它时,它会自动向我建议<input>
-field。如果我按 Tab/Enter,我会得到建议的内容。
我来自 atom 用于前端的东西,如果你在那里按 enter,你会得到input
具有基本属性的字段,如下所示:
<input type="" name="" value="">
是否有用于 intellij 的插件/设置来做同样的事情?
我已经在使用实时模板/编辑,这似乎不起作用。
解决方案
不要输入左尖括号,只需输入in
,点击Ctrl+Space
,然后从完成列表中选择input
Emmet live template。默认情况下,它将展开为,但您可以在设置 |<input type="text">
中更改input
实时模板。编辑 | Live Templates、Zen HTML添加更多预定义属性,例如:
<input type="$VAR0$" name="$NAME$" value="$VALUE$">
推荐阅读
- kubernetes - 在 kubernetes 上运行的 traefik AWS ELB 上的真实 IP
- javascript - 如何发送复选框的值?
- powerbi - 高亮散点图 Power bi
- ios - Swift UI 在协议中使用视图(协议“视图”只能用作通用约束,因为它具有 Self 或关联的类型要求)
- php - 如何向来自特定广告系列的访问者隐藏 AdSense 广告?
- javascript - 与 Bootstrap 4 输入标记插件一起使用时,自定义 Javascript 函数不起作用
- powershell - How would I select the KB numbers in the output of the Get-WindowsUpdate command?
- cognos - Cognos 10.2.2 如何查看正在向特定收件人发送哪些报告?
- ios - Swift 用户通知模块已禁用。我该如何启用它?
- ios - 邮递员生成的 cUrl 和 Swift 代码导致状态 415,但是当从邮递员本身运行相同的代码时,我得到 400(这是正确的)