Automatic double quote escaping

Is there any way I can achieve automatic double quote escaping?
Here is an example :

print " You have selected : <span class=\"number\">$quantity</span>"

Here I typed two times the '\' backslash character so that the inside double quotes are valid (because the are contained in the outside double quotes).
Is there any way the phpstorm editor put these backslash characters automatically?
Thank you.

2 comments
Comment actions Permalink

You could create a live template for that particular scenerio and choose from the code completion drop down using ctrl+j if you are using windows, not sure what the keyboard keys are for linux or mac.

I mean creating the entire span itself and using $END$ to place the cursor in between the  \" | \"  for you.

0

Please sign in to leave a comment.