2
votes

Is there a way to change autocomplete rule for attribute values in PhpStorm 7.1 (or disable it)? I mean I want to change autocomplete from

<div class=""></div>

to

<div class=''></div>
2

2 Answers

2
votes

In addition to already stated workarounds by Noah.

It's not possible to choose quote symbol in such case.

Please watch/vote this ticket to get notified on progress: http://youtrack.jetbrains.com/issue/WEB-459

1
votes

I've been using PhpStorm since v5, but have not found a way to address this.

However, this behaviour can vary, depending on how you're getting to the quotes.

  1. If you're typing <div class= and it's automatically filling in the "" for you, you can remove that by [unsetting "Automatically add quotes for attribute values"].
  2. If you're using tab-completion, like <div cla[TAB], then there doesn't seem to be much you can do, except press backspace after tab. I haven't
  3. You can set up your own Live Template <div class='$END$'></div> to give you your desired format.

There may be a plugin or two that can change / override PhpStorm's default behaviour, but I haven't looked too much.