Search code examples
phpstorm

Where is the setting for automatically adding " in html-attributes in PhpStorm


If I try to write <a href="https://puggan.se/">puggan</a> in a html-dockument in PhpStorm, it ends up as: <a href=""https:/>/puggan.se/">puggan</a>

The problem is that when I add the = after href, it automatically adds two quotes ", and places the cursor between them, and when I write the " myself (as I'm used to do), its overwrites the 2nd ", and the cursor ends up behinds them, and the attribute value ends up outside the ".

  • Where is the setting for turning this off?
  • Dose it have a name?

Solution

    1. Settings/Preferences
    2. Editor | General | Smart Keys
    3. Disable XML/HTML | Add quotes for attribute value on typing '=' and attribute completion option

    enter image description here