Intellij中代码完成时隐藏基类方法? [英] Hiding base class methods in code completion in Intellij?

查看:64
本文介绍了Intellij中代码完成时隐藏基类方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Intellij是否有自定义过滤代码完成显示的方法的方法?例如,如果我有一个实现了Collection的类,那么在按Ctrl-Space或Ctrl-Shift-Space时会显示大量方法。我希望能够完成代码只能显示当前对象的方法。能够配置某些类的方法的过滤也可以。



由于Collections的方法很多,这在Groovy中特别恼人。我很少看到他们的代码完整,因为我知道他们,但他们为代码完整的下拉菜单添加了很多噪音。 解决方案

对此,有公开问题。随意投票。


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.

解决方案

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

这篇关于Intellij中代码完成时隐藏基类方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆