How to wrap selection in quotes using PhpStorm?

k0pernikus picture k0pernikus · Jul 14, 2015 · Viewed 14.9k times · Source

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?

Answer

k0pernikus picture k0pernikus · Jul 14, 2015

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