停止空格键击键触发Eclipse中的自动完成 [英] Stop spacebar keypress from triggering autocomplete in Eclipse

查看:135
本文介绍了停止空格键击键触发Eclipse中的自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse Neon中,我通过转到

In Eclipse Neon, I've enabled intellisense-style suggestions for Java by going to

Window -> Preferences -> Java/Editor/Content Assist

并设置以下

Auto activation delay (ms) -> 0
Auto activation triggers for Java -> .(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

source = Eclipse Intellisense?

除了一个令人讨厌的问题,这个工作非常出色,当我打到空格键,键入的令牌会自动完成建议列表顶部的任何操作。公平地说,除了有时我会输入具有完全合法匹配的类/变量名称,但这个不会显示为顶级建议,所以当我自然地点击 spacebar Eclipse插入一些完全错误的东西。

This works brilliantly, apart from one annoying problem. When I hit spacebar, the token being typed is autocompleted with whatever is at the top of the suggestions list. Fair enough, except that sometimes I'll type a class/variable name with an exact legal match, but this won't appear as the top suggestion. So when I naturally hit spacebar Eclipse inserts something completely wrong.


EG 键入 Cookie 我会点击空格键并获取 CookieMonster

E.G. after typing Cookie I'll hit spacebar and get CookieMonster.

这似乎是一个错误,发生经常足以令人讨厌,但即使这个我不希望 spacebar 触发自动完成一般即可。我可能想要键入一个尚未被声明的变量名或类似的变量。我想使用自动填充作为一个辅助工具,但是我的自然打字应该始终优先于它。

This seems like a bug, and happens often enough to be annoying, but even despite this I don't want spacebar to trigger autocomplete in general. I may want to type a variable name which hasn't been declared yet, or something similar. I want to use autocomplete as a helper tool, but my natural typing should always take priority over it.

我想停止< kbd> spacebar 触发自动完成,并且回退到使用输入,或者更好地仍然触发自动完成与自定义键在普通打字中不使用。 是否有可能?

I'd like to stop spacebar triggering autocomplete, and either fall back to using enter, or better still trigger autocomplete with a custom key not used in ordinary typing. Is any of this possible?

我已经在内容辅助中的所有设置播放,无法使用。搜索问题只是返回一系列关于禁用自动完成功能的结果。

I've played around with all the settings in Content Assist to no avail. Googling the question just returns a bunch of results about disabling the autocomplete feature.

更新

这个问题至少在Eclipse的最近5个版本 - [4.6] Mars [4.5] Luna [4.4]开普勒 [4.3]和 Juno [4.2]

This issue is present in at least the last 5 versions of Eclipse - Neon [4.6] Mars [4.5] Luna [4.4] Kepler [4.3] and Juno [4.2]

在接受的答案和各种评论中讨论的问题跟踪器上的线程似乎表明这个问题已被确认。

The thread on the issue tracker discussed in the accepted answer and various comments seems to suggest that this issue has been acknowledged.

如果任何Eclipse开发人员正在阅读,我可以说的是,请考虑修复此问题的好处。

If any Eclipse devs happen to be reading, all I can say is, please consider the benefits of fixing this.

当然,接受的答案中的插件和其他与bug线程相关联的插件修复它。但是,面对这个问题的其他人还有多少人知道或者想要找到并安装它?

Sure, the plugin in the accepted answer, and other plugins linked to in the bug thread, fix it. But how many other people facing this issue either know about it or will bother to find and install it?

自动填充功能是您想在任何现代IDE中直观,完美地开箱即用的功能。在IntelliJ IDEA中就是这种情况,所以它目前是一个令人信服的理由来切换...

Autocomplete is a feature you want to work intuitively and flawlessly out of the box in any modern IDE. This is the case in IntelliJ IDEA and so it's currently a very convincing reason to switch...

推荐答案

<对于此,有一个解决方案问题跟踪器
复制eclipse / dropins文件夹中的 jar 。将下一个重新启动的空间作为自动完成触发消息。

There is a solution on the issue tracker for this. Copy the jar in the eclipse/dropins folder. With the next restart space is diabled as autocompletion trigger.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=348857

这篇关于停止空格键击键触发Eclipse中的自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆