How to wrap selection in quotes using PhpStorm?

04/30/2020 19:00:02

I have two different machines both using PhpStorm. One has the feature enabled, that I can select a text and by pressing ' it will become 'text':

Example of the working feature

Yet the other one will just erase the text:

Example of the not working feature

I have forgotten how I set it up. Where can I enable this feature?

Verified Answer (140 Votes)

07/14/2015 17:30:15

The option is hiding under:

Editor > General > Smart Keys: Surround selection on typing quote or brace

Screenshot of the PhpStorm config to enable the feautre

Hack Hex uses Stack Exchance API by the Stack Exchange Inc. to scrape questions/answers under Creative Commons license.