验证自动完成在Eclipse [英] Validate Autocomplete in Eclipse

查看:172
本文介绍了验证自动完成在Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Visual Studio即将开始,并在Java中的一个项目,我意识到我不能与具有preSS Ctrl +空格键有自动完成面板显示出来应对。一个简单的解决方法是将所有键盘字符成为自动完成触发字符。

Coming from Visual Studio and starting a project in Java, I realized I couldn't cope with having to press ctrl+space to have the autocomplete panel show up. An easy workaround was to set all keyboard characters to be trigger characters for autocompletion.

我唯一的问题是,当自动完成建议psented $ P $,空格键上的单个preSS会写的第一个命题。当我很高兴与建议的情况下,这只是罚款。在其实我是想用什么我最初写下的情况下,我不得不preSS逃离先去掉自动完成面板之前,我可以preSS空间安全。

My only problem is that, when presented with autocomplete suggestions, a single press on the space bar will write the first proposition. In situations where I'm happy with the suggestions, that's just fine. In situations where I actually want to use what I wrote down initially, I have to press 'escape' first to remove the autocomplete panel before I can press 'space' safely.

NetBeans不允许使用空格键为自动完成的确认键(仅'进入'创建),我喜欢这种行为。 任何方式复制它在Eclipse?

Netbeans doesn't use the space bar as a validating key for autocompletion (only 'enter' does that) and I like that behavior. Any way to replicate it in Eclipse?

在此先感谢您的回答!

修改:我应该提到我使用Eclipse在Mac上

EDIT: I should have mentioned I'm using Eclipse on the Mac.

纪尧姆

推荐答案

我只是想重现你的行为,但不能。下面是我的配置有(我已经做了重现步骤):

I just tried to reproduce your behavior, but couldn't. Here is the configuration I have (and the steps I have done to reproduce):


  • 我已经安装了靛蓝(当前的Eclipse版本,版本号3.7)。

  • 我没有更改任何配置有,这是什么是默认的:

  • 窗口> preferences> Java的>编辑>内容辅助,我有以下设置:

    • 完成插入(而不是覆盖)

    • 自动插入单建议(这是确定的大部分时间)

    • 的插入普通preFIX自动

    • I have installed Indigo (current version of Eclipse, version number 3.7).
    • I did not change any configuration there, this is what is the default:
    • Under Window > Preferences > Java > Editor > Content Assist, I have the following settings:
      • Completion inserts (instead of overwrite)
      • Insert single proposal automatically (which is ok most of the time)
      • not insert common prefix automatically

      我有一个简单的类,再往的方法,并执行以下步骤:

      I have a simple class, go down to a method, and do the following steps:


      1. 输入 this.no 并等待一段时间。有时候,我不得不preSS CTRL + SPACE ,有时没有。

      2. 的议案弹出,其中包括通知 notifyAll的

      3. I preSS SPACE 和空间插入文本时,自动完成建议被关闭,但不插入任何东西。

      1. Enter this.no and wait some time. Sometimes I have to press CTRL + SPACE, sometimes not.
      2. Proposal pops up which includes notify and notifyAll.
      3. I press SPACE and a space is inserted in the text, the autocomplete suggestions are closed without inserting anything.

      我不知道,如果旧版本的Eclipse都具有相同的行为。

      I do not know if older versions of eclipse have the same behavior.

      这篇关于验证自动完成在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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