gpt4 book ai didi

php - 粘贴时如何禁用 Eclipse PDT 自动格式化代码

转载 作者:可可西里 更新时间:2023-11-01 12:24:56 25 4
gpt4 key购买 nike

我正在使用 Eclipse Indigo 3.7.0 和 PDT 进行 PHP 开发。当我复制/粘贴一些代码时,Eclipse 会自动对其进行格式化。

例如,复制这个:

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;
}

知道如何禁用它吗?最好的问候。

最佳答案

真的很糟糕...
试试这个。
使用文本编辑器打开 workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.php.ui.prefs。
添加“smartPaste=true”。

(请注意,我不知道副作用)

关于php - 粘贴时如何禁用 Eclipse PDT 自动格式化代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6580997/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com