I know this is a little late answer, but I hope anyone who looks this question get helped.
In PhpStorm, almost everything can be configured but a little tricky and takes some learning curve.
It's very common behaviour that select a word and type single quote (or double quote) to surround it.
Hello World
'Hello World'
"Hello World"
To enable this, tick on checkbox of Preferences -> IDE -> Editor -> Smart Keys -> Surround Selection on typing quote or brace
.
Another way, you select something (word, condition) and press Cmd + Alt + T (on Mac) , Ctrl + Alt + T (on Windows). Available Surround With
options dialog box will be displayed.
Update (for PhpStorm8)
For PhpStorm Version 8, tick on checkbox of Preferences -> Editor -> General -> Smart Keys -> Surround selection on typing quote or brace
.
Update (for PhpStorm 2016)
For PhpStorm Version 2016, use Cmd + Alt + S (on Mac) or Ctrl + Alt + S (on Win) to go to Settings. Tick on checkbox of Settings -> Editor -> General -> Smart Keys -> Surround selection on typing quote or brace`.
Settings | Live Templates
and use$SELECTION$
-- should work for twig files as well. Once setup, use Ctrl+Alt+J to bring list of applicable templates. More details here: blog.jetbrains.com/webide/2012/10/… – LazyOne