Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Non-Type proposals in Eclipse?

Tags:

java

eclipse

My auto activation keys are set to a to z. Thus once I type str, it proposes StringBuilder, which is what I want.

Eclipse show Java Type proposals

Then, I press Space to accept the suggestion, and type sb for the variable name. Eclipse shows Non-Type proposals "sBuilder". Since I have decided the variable name to be sb, the Non-Type proposals are useless.

Eclipse show Java Non-Type proposals

As the annoying proposal shows, I cannot continue to type =, because Eclipse will change my variable name from sb to sBuilder. So I have to press Esc, then =.

Every time I define variables, Eclipse always gives me Non-Type proposals, which costs one Esc to reject. How to disable Non-Type proposals in Eclipse??


1 Answers

Try this:

  1. Open Window - Preferences.
  2. Go to Java - Editor - Content Assists - Advanced.
  3. In Advanced page, the Java Proposals should be checked by default. Java Proposals consists of both Non-type and Type proposals.
  4. If you want to disable Non Type Proposal, uncheck the Java Proposals and Java Non-Type Proposals, then check the Java Type Proposals.
like image 64
Iswanto San Avatar answered Oct 30 '25 12:10

Iswanto San



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!