Eric Hauser
Eric Hauser

Reputation: 5581

Hiding base class methods in code completion in Intellij?

Does Intellij have any way of customizing the filtering the methods that are displayed for code completion? For instance, if I have a class that implements a Collection, there are a large number of methods that will be displayed when hitting Ctrl-Space or Ctrl-Shift-Space. I would like to be able to code complete only have the methods of the current object displayed. Being able to configure the filtering of methods of certain classes would work as well.

This is particularly annoying in Groovy due to the large amount of methods for Collections. I am rarely looking to code complete on them since I know them, but they add a lot of noise to the code complete dropdown.

Upvotes: 7

Views: 896

Answers (3)

SMMH
SMMH

Reputation: 390

I was having the same problem, and looks like they've added this. Just go to here:

  • Settings > Editor > General > Auto Import > Exclude from auto-import and completion

Click on + and add your class or member name and then configure its scope (IDE or Project).

Upvotes: 0

Noel M
Noel M

Reputation: 16136

You should have a look in Settings > Editor > Code Completion

Options are limited but this seems to be place you could find what you need

Upvotes: 0

CrazyCoder
CrazyCoder

Reputation: 402215

There is an open issue for this. Feel free to vote.

Upvotes: 5

Related Questions