Java – eclipse content assisted authentication key

I can't find any documentation about changing the shortcut for verifying content assisted selection

I mean, for my exact case, when content assist is turned on, I want to verify its proposal by pressing enter (its work), but it is never the same as any other key, such as [or (. Which key verification proposal do I want to choose

Even if I need to edit the configuration file manually, if someone has this answer, it will be perfect!

I checked org eclipse. jdt. ui. Prefs and org eclipse. wst. jsdt. ui. Prefs failed

thank you.

Solution

You look unlucky The eclipse Mars document discusses content assistance and explains:

Completion can be triggered by user request or can be automatically
 triggered when the "(" or "." character is typed:

public char[] getCompletionProposalAutoActivationCharacters() {
    return new char[] { '.','(' };
}

Since these characters appear to be hard coded, you need to implement your own content assistance Maybe it's enough to override the existing simple derivation in this way?

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>