I am using IntelliJ IDEA.
How I can know how many methods a class has? Are there any plugins to see metrics concerning the number of methods?
By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields. to have protected class members shown in the tree.
You can view documentation by placing the caret at a symbol and pressing Ctrl+Q or selecting View | Quick Documentation from the main menu.
Press Ctrl + Alt + H on Windows/Linux, ⌥ + ^ + H on macOS, and the Call Hierarchy tool window will open up with all the places that the function is called inside.
Try the MetricsReloaded plug-in.
Help | Find Action | Calculate Metrics.
Create a new empty profile with CSO enabled — Class metrics, Class size (operations):
Run the profile, it will show the number of methods per class:
You may also want to enable ISO (Interface size) metric.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With