Copy all method names - Intellij

IntelliJ editing question: If editing a java file, is there a way to copy all the names and arguments of the method to the clipboard?

Something like that...

java.lang.String.length():int java.lang.String.charAt(int):char java.lang.String.codePointAt(int):int java.lang.String.codePointBefore(int):int java.lang.String.codePointCount(int, int):int java.lang.String.offsetByCodePoints(int, int):int 

Copying from "Structure" copies all (or selected) method names .. but this does not include the class name.

+6
source share
2 answers

I do not know how to do this with InteliJ, but I can offer you to use the javap - utility, which is included in your jdk. Just run it from the command line and specify the class name. It prints the "prototype" of the java class; something like a .h file in c.

Hope this helps.

+5
source

If you are only interested in method names

  • Go to structure view
  • Choose all
  • Right click to copy
+11
source

Source: https://habr.com/ru/post/905514/


All Articles