简体   繁体   English

用于 netbeans 中 java 中的用户定义类的智能感知

[英]Intellisense for userdefined classes in java in netbeans

I am confused that how to make intellisense of userdefined classes in java.我很困惑如何在 java 中对用户定义的类进行智能感知。 When we make the object of one class into another, it gives me all the methods and attributes of the first class alongwith some other methods like toString() of object class. When we make the object of one class into another, it gives me all the methods and attributes of the first class alongwith some other methods like toString() of object class. So how to make intellisense of the first class?那么如何对第一个 class 进行智能感知呢?

I have tried netbeans for many of my projects and it have quite good code completion and intellisense for user defined classes and methods also.我已经为我的许多项目尝试过 netbeans,它对用户定义的类和方法也有很好的代码完成和智能感知。 Follow this thread to enable it for java.按照线程为 java 启用它。

If the problem still persists then may be you should try to delete your NetBeans cache, which should be located in -如果问题仍然存在,那么您可能应该尝试删除 NetBeans 缓存,该缓存应位于 -

$HOME/.netbeans/$VERSION/var/cache/ $HOME/.netbeans/$VERSION/var/cache/

But create a backup first.但首先创建一个备份。

After this, you can try creating a new project to kickstart NB cache.在此之后,您可以尝试创建一个新项目来启动 NB 缓存。

Also there is a similar thread but the language is php, try those solutions also.还有一个类似的线程,但语言是 php,也可以尝试这些解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM