Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 339

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 392

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 394
phpstorm自动补全转义符号设置/嵌套引号自动添加斜杠以及内容原样粘贴快捷键 - Joyber 的博客

phpstorm工具在使用中,粘贴html代码到双引号中,有时会涉及双引号嵌套双引号,就需要内部引号加斜杠做转义处理。

老版本时默认勾选了要处理,即粘贴就自动补全斜杠做转义处理,但是有个小bug是,如果复制已转义的代码,再次粘贴时,会再加一次转义斜杠,出现双斜杠情况,有快捷键可规避:Shift+Ctrl+Alt+V 指令将粘贴不做任何处理的内容原样粘贴。

2021版本后修正了这个问题,不管复制的原内容是否已经做过转义处理,再次粘贴会自动处理好,正常使用粘贴即可。但是软件默认设置却是没勾选粘贴时要加转义斜杠

具体位置设置路径:
自动替换单双引号:editor-general-smartKeys-php 【replace unnecessary double quotes on paste】
自动在单双引号前添加反斜线:editor-general-smartKeys-php 【escape symbols on paste in string literals】

标签: none

添加新评论