is it possible to check the usage for multiple methods in a class at once in Intellij? For example, class A has 100 methods. Instead of going over each single method and check if it is used, can we actually check some or all of usages for methods in this class at once in Intellij?
Asked
Active
Viewed 41 times
0
-
Analyze | Inspect Code. – CrazyCoder Jan 30 '19 at 01:44
-
@CrazyCoder it does not work for me. Intellij showed "no suspicious code found" – user3369592 Jan 30 '19 at 02:00
-
Please share the sample code and the inspection profile you are using to reproduce the problem. – CrazyCoder Jan 30 '19 at 02:08
-
See this answer: https://stackoverflow.com/a/6587932/104891. – CrazyCoder Jan 30 '19 at 02:10
-
The method name should be grey if it isnt used at all... does this indicate what you are looking for? – vikingsteve Jan 31 '19 at 13:51
1 Answers
0
If you are purely looking for methods that are unused, and there are no errors in the source, you can just use F2 to jump between them.
Unused methods will be highlighted grey, with an underline.

vikingsteve
- 38,481
- 23
- 112
- 156