php – 如何在粘贴时禁用Eclipse PDT自动格式代码
发布时间:2020-12-13 17:51:05 所属栏目:PHP教程 来源:网络整理
导读:我正在使用 Eclipse Indigo 3.7.0和PDT进行 PHP开发. 当我复制/粘贴一些代码时,Eclipse会自动对其进行格式化. 例如,复制此: if ($distance 50 $distance = 100) {$local_score = 8;}if ($distance 100 $distance = 200) {$local_score = 6;} 粘贴在这个: i
我正在使用
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; } 有关如何禁用此功能的任何想法?
这真的很糟糕……
试试这个. 通过文本编辑器打开工作区/ .metadata / .plugins / org.eclipse.core.runtime / .settings / org.eclipse.php.ui.prefs. 添加“smartPaste = true”. (注意我不知道副作用) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |