74
votes

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?

1
+0.5 for the question and +0.5 for the nice pictures - free after: an image may tell more than a thousand words! - bish
@bish If you are running a Gnu/Linux distribution, I suggest looking into byanz - k0pernikus
Thanks for the info but I don't need those image creator (therefore I'm a windows guy). I wanted to make clear that in my opinion this is a beautiful example to show that images may improve a question a lot, knowing that images in SO question are often not wanted (for proper reasions) - but here it's different. - bish

1 Answers

141
votes

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