标签: phpstorm
如果我尝试在PhpStorm中的html-dockument中写<a href="https://puggan.se/">puggan</a>,它最终会显示为:<a href=""https:/>/puggan.se/">puggan</a>
<a href="https://puggan.se/">puggan</a>
<a href=""https:/>/puggan.se/">puggan</a>
问题是当我在=之后添加href时,它会自动添加两个引号",并将光标放在它们之间,当我写"时}我自己(就像我以前那样),它会覆盖第二个",光标会在它们后面结束,属性值最终会在"之外。
=
href
"
答案 0 :(得分:1)
Settings/Preferences
Editor | General | Smart Keys
XML/HTML | Add quotes for attribute value on typing '=' and attribute completion