ageektrapped
ageektrapped

Reputation: 14562

Is there a way to remove private members from Content Assist in Eclipse

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.

Upvotes: 1

Views: 480

Answers (2)

axelclk
axelclk

Reputation: 958

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.

Upvotes: 0

starblue
starblue

Reputation: 56772

Window -> Preferences -> Java -> Editor ->Content Assist -> Hide proposals not visible in the invocation context

Upvotes: 3

Related Questions