Jayan
Jayan

Reputation: 18459

copy all method names - Intellij

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

Some thing like this...

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' does copy all(or selected) method names.. but that does not include classname.

Upvotes: 14

Views: 5570

Answers (2)

Kiran
Kiran

Reputation: 3361

If you are interested in just names of the methods

  1. Go to structure view
  2. Select all
  3. Right click to copy

Upvotes: 27

AlexR
AlexR

Reputation: 115328

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

I hope this helps.

Upvotes: 8

Related Questions