就像我说的那样,我正在寻找VSCode片段来做这样的反应:
.menu (+ press tab) = <div className="menu"></div>
span.menu ( +press tab ) = <span className="menu"></span>
答案 0 :(得分:1)
听起来你正在寻找emmet snippets。要在javascript文件中启用这些文件,set:
"emmet.includeLanguages": {
"javascript": "html",
"javascriptreact": "html"
}