如果我复制粘贴缩进文本例如:
foo bar 123
到PhpStorm,然后格式和缩进丢失。
我的PhpStorm是全新安装的
尝试将选项File | Settings | Editor | General | Smart Keys | Reformat on paste更改为None
File | Settings | Editor | General | Smart Keys | Reformat on paste
None
如果您不想更改全局设置,也可以使用Past Simple选项在粘贴时ad-hoc跳过自动格式化。
Past Simple