在PhpStoem 10中真的无法使用的功能,我复制,例如
'.$this->createUrl('edit', array('id' => $model->id).'
并粘贴到我的视图中。
echo '<a href="PASTE HERE">Edit</a>';
并得到了。
echo '<a href="\'.$this->createUrl(\'edit\', array(\'id\' => $data->id)).\'">Edit</a>';
好的,我复制到我的视图中。
echo '<a href="'.$this->createUrl('edit', array('id' => $model->id).'">edit</a>';
然后粘贴到底线。瞧--同样的结果。
echo '<a href="\'.$this->createUrl(\'edit\', array(\'id\' => $data->id)).\'">Edit</a>';
如何禁用该功能?
这个问题终于在PhpStorm 2020.2版本时得到了解决。在Preferences > General > Smart Keys > PHP > "Escape symbols on paste in string literals "中有一个复选框。取消选中该复选框以禁用这个恼人的功能。