Search code examples
idewebstorm

WebStorm 2020.1.3 Backspace auto delete empty object/string


Whenever I write "" or {} and want to delete it because it's empty I just go inside and hit backspace but whenever I do that I finish with " or }.

Is there any solution to enable this back or did JetBrains just removed the functionality?

One solution is to use CTRL + Backspace but would be nice that have this option without CTRL.


Solution

  • Check your IDE settings: sounds like some options are disabled. I checked in PhpStorm 2020.1.3 version in plain .js file. These options must be enabled:

    Settings/Preferences | Editor | General | Smart Keys

    • Insert paired brackets (), [], {}, <>
    • Insert pair quote

    enter image description here