Skip to content

Instantly share code, notes, and snippets.

@jancimajek
Last active November 10, 2015 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jancimajek/7d16d2beb5832c903677 to your computer and use it in GitHub Desktop.
Save jancimajek/7d16d2beb5832c903677 to your computer and use it in GitHub Desktop.
PHP Storm 10 quote escaping when copy&paste
<?php
$test = "Copy from here -->" . $foo . "<-- to here and pasting will escape the quotes -->\" . $foo . \"<--";
$test = 'Copy from here -->' . $foo . '<-- to here and pasting will escape the quotes -->\' . $foo . \'<--';
$test = "
lorem ipsum
" . $foo . " // copy this line
\" . $foo . \" // the quotes get escaped on pasting
";
$test = '
lorem ipsum
' . $foo . ' // copy this line
\' . $foo . \' // the single-quotes get escaped on pasting
';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment