Pasting into a string adds backslash to quotes unnecessarily

If I have a statement like `echo __LINE__ . " - debug words;` and I try to copy and paste `{$_SERVER['REQUEST_METHOD']}: " . print_r($_REQUEST, true)` over `debug line"`, PHPStorm adds a backslash (\) to every quote in the pasted string, breaking the syntax.

This happens in other similar situations.

I then have to remove each backslash to fix it; I'm not seeing how to fix this otherwise.

0
1 comment

You can use Paste Simple (Ctrl+Alt+Shift+V) in such cases.

1

Please sign in to leave a comment.