我正在使用Eclipse Indigo 3.7.0和PDT for PHP开发。 当我复制/粘贴一些代码时,Eclipse会自动格式化它。如何在粘贴时禁用Eclipse PDT自动格式代码
例如,复制此:
if ($distance > 50 && $distance <= 100) {$local_score = 8;}
if ($distance > 100 && $distance <= 200) {$local_score = 6;}
被粘贴在此:
if ($distance > 50 && $distance <= 100) {
$local_score = 8;
}
if ($distance > 100 && $distance <= 200) {
$local_score = 6;
}
上的任何想法如何禁用此? 最好的问候。
我试过这个,它运行良好。目前没有发现副作用。非常感谢。 – Philippe
终于有了解决方案!谢谢。 – soupagain
是不是应该是“smartPaste = false”,而不是“true”? “真”对我不起作用,但是“假”做到了。 此外,您可以通过Eclipse偏好设置找到相应的配置选项:窗口 - >首选项 - > PHP - >编辑器 - >打字 - >取消勾选“粘贴调整缩进”(http://roadzy.blogspot.com/2012 /08/how-to-disable-auto-formatting-when.html) – Kipras