Eclipse Mars:按下点,Content Assistant不完成 [英] Eclipse Mars: Content Assistant doesn't complete when pressing dot

查看:223
本文介绍了Eclipse Mars:按下点,Content Assistant不完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入局部变量名的第一部分并按 Ctrl + 空格,以显示内容助理时,显示全名该变量并预选它。

When I type in the first part of a local variable name and press Ctrl+Space in order to show up the content assistant, then it displays the full name of the variable and preselects it.

在Eclipse Luna中,如果您在键盘上按,则全名将被插入内容助理将显示此变量实例的所有可访问成员。

In Eclipse Luna release the full name becomes inserted if you press . on keyboard and the content assistant shows up all accessible members of this variable instance.

使用Eclipse Mars,它将直接插入到不完整变量名后面。

With Eclipse Mars it inserts the dot directly after the incomplete variable name.

如何将此行为重新切换到Eclipse Luna?

How can I switch this behavior back to Eclipse Luna?

public class A {
    public int member;

    public void possiblyAll(){

    }
}

public class Test {
    private A aMemberNameWhichIsLong_1;

    private A aMemberNameWhichIsLong_2;

    private A aMemberNameWhichIsLong_3;

    public static void main(String[] args) {
        Test t = new Test();
        t.amem
    }
}

在这个例子中,插入符号位于 t.amem 之后。 Ctrl + 空格显示全名。按关闭内容助理并生成此代码: t.amem。

In this example, the caret is located after t.amem. Ctrl+Space displays the full name. Pressing . closes content assistant and produces this code: t.amem.

在Luna中,它是: t.aMemberNameWhichIsLong_1。

In Luna it was: t.aMemberNameWhichIsLong_1.

推荐答案

p>这是错误,由代码推荐者插件(请参阅@Johannes Dorn的解决方案进行修复)。

This was a bug introduced by the Code Recommenders plug-in (see answer by @Johannes Dorn for the fix).

您可以(暂时)通过窗口>首选项>代码推荐者>完成> [x]启用代码推荐者代码完成

这篇关于Eclipse Mars:按下点,Content Assistant不完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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