Is it possible to configure Eclipse so that it automatically inserts an import statement whenever a class name has just one package match ?
Note: “Preferences/Java/Editor/Content Assist/Insert single proposals automatically” is turned on
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As @Bala R commented, Ctrl–Shift–O (Organize Imports) is the way to go.
“Insert single proposals automatically” is only for content assist – e.g. code completion.