Skip to content
Advertisement

Eclipse Content Assist is Appending Class Name to Variable Suggestions

Content Assist in Eclipse Juno is appending the Class name of variables to suggestions. For example, if I start to type:

private String firstName

and hit Return, Eclipse changes this to:

private String firstNameString;

I don’t know if this is specific to Juno or if I accidentally turned this ‘feature’ on, but it is really annoying. Any idea how to get rid of this?

Advertisement

Answer

I don’t know how to resolve the problem when you hit Return (because i can’t reproduce the issue), but here is the solution to tell eclipse to not modify the variable name automatically when you hit ctrl + space:

In eclipse: Select Window -> Preferences -> Java -> Editor -> Content Assist

uncheck “Insert single prposals automatically“.

enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement