DEV Community

Suhana
Suhana

Posted on

In IntelliJ remove those classes which have 0 uses

In my project, I have too many classes which are not in usage at present. so I have to remove those classes with 0 usages(class should not be used in another class or any declaration). Do I have any shortcut to do as my project has 300+ classes

Top comments (1)

Collapse
 
hendrikras profile image
Hendrik Ras

Intelij color codes functions and classes that are not used. In my theme they become a bit grey'ish. That might help to decide if you wish to remove them. Never heard of shortcuts to remove unused code. though. Sorry.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay