2

I would like to copy the file structure of a python file. In PyCharm, I can view the structure using Command + F12.

enter image description here

Is there a way to copy the text of the structure?

Adam_G
  • 7,337
  • 20
  • 86
  • 148
  • 1
    Can you disambiguate "copy" in this context? – Julien Mar 28 '17 at 01:09
  • You can use a Python interpreter to do that. See http://stackoverflow.com/a/139198/2214933 I don't know if PyCharm has a GUI method to do the same thing. – Steve Piercy Mar 28 '17 at 02:21
  • By "copy" I mean get the structure in text form. The `dir()` function in the linked answer is interesting. Can it be run to not show inherited methods? – Adam_G Mar 28 '17 at 03:29

1 Answers1

0

Click on Conversation's first method (__init__()), then Shift-click on method responses_length(), right mouse click, then Copy copies it into your clipboard as text. That gives you all methods in your class.

mjkrause
  • 406
  • 1
  • 7
  • 14