Search code examples
phpstormwebstormjetbrains-ide

PhpStorm overwrite " (quote) when it already exists instead of adding another


I have searched for this and it appears to be a common complaint that has yet to be solved -

When typing in PhpStorm, the auto complete generates the ="" for you, which can be quite helpful:

href="|"

And it leaves your cursor (|) in the middle, ready to go. Great!

However, as has been complained about in the past, in order to then move past that quote, you need to move your hand to your arrow keys and hit the right arrow.

Ideally, what I'd like though, is to set it up so if I press " while right in front of a " it simply overwrites it and moves the cursor through/past it.

Is this possible using any of the mapping functions?

EDIT: I just noticed that PhpStorm does this with the single quote when editing an array (at least inline)...


Solution

  • Thanks to @LazyOne in the comments on my post I've discovered it's a known bug.

    https://youtrack.jetbrains.com/issue/WI-77626