Eclipse 删除单词行为

发布于 2024-09-29 09:45:58 字数 411 浏览 1 评论 0原文

当您按 control-delete/backspace 时,Eclipse 中的哪个首选项控制删除多少内容?这是操作系统定义的删除整个单词命令(但我想在 Eclipse 中进行了扩展)。

在 CDT 中,这很棒。如果您在某个空白处按下 Control-Delete,它将一直删除到第一个字符。像这样(以 | 为光标):

function |      foo() {

给你:

function foo() {

但在 PDT 中,这太糟糕了!它的行为就好像空格不是单词一样,并删除空格和下一个单词:

function () {

如何使 PDT 表现得像 CDT?

What preference in Eclipse controls how much is deleted when you press control-delete/backspace? This is the delete whole word command as defined by the operating system (but I imagine expanded on in Eclipse).

In CDT, it's great. If you press control-delete in some white space it will delete all the way up to the first character. Like so (with | being the cursor):

function |      foo() {

gives you:

function foo() {

But in PDT, it's terrible! It behaves as if white space isn't a word and deletes the white space and the next word:

function () {

How can I make PDT behave like CDT?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

晚风撩人 2024-10-06 09:45:58

存在一些 PDT 编辑器错误(例如 bug 210108 或 < a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=247630" rel="nofollow">错误 247630)。

因此,如果通过 最新的 PDT 版本(如 2.2.0),这是 错误报告

There has been a couple of PDT editor bugs (like bug 210108 or bug 247630).

So if this ("this" being the improper CTRL+DEL behavior) is confirmed with the latest PDT version (like 2.2.0), this is a god candidate for a bug report.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文