在PhpStorm中自动添加“in html-attributes”的设置在哪里

时间:2016-12-14 15:53:38

标签: phpstorm

如果我尝试在PhpStorm中的html-dockument中写<a href="https://puggan.se/">puggan</a>,它最终会显示为:<a href=""https:/>/puggan.se/">puggan</a>

问题是当我在=之后添加href时,它会自动添加两个引号",并将光标放在它们之间,当我写"时}我自己(就像我以前那样),它会覆盖第二个",光标会在它们后面结束,属性值最终会在"之外。

  • 将其关闭的设置在哪里?
  • 是否有名字?

1 个答案:

答案 0 :(得分:1)

  1. Settings/Preferences
  2. Editor | General | Smart Keys
  3. 禁用XML/HTML | Add quotes for attribute value on typing '=' and attribute completion选项
  4. enter image description here