Is there a way to remove private members from Content Assist in Eclipse
-
06-07-2019 - |
Question
I'm in Eclipse writing Java. I come from Visual Studio with Resharper writing C#.
When Content Assist comes up, I see all the private members of a class, even though I'm not editing that class. Is there a way I can turn that off?
It's really distracting.
Solution
Window -> Preferences -> Java -> Editor ->Content Assist -> Hide proposals not visible in the invocation context
OTHER TIPS
If you do not explicitly write a method's access level (public, protected, or private), then it will default to package-private, and these methods will probably been shown in Content Assist.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow