At the time I am documenting a lot of my code (Python) and I was wondering if there is a plugin to Eclipse that can automatically generate a doc string for my functions, like visual studio does it for C# when writing ///
over a method.
I have been searching around for a solution, but I had no luck - do any of you know a solution?
Example:
From my parameter list on a method the "dummy" documentation will be created under my method definition as shown below:
def myFunction(self, a, b):
"""
:param a:
:type a:
:param b:
:type b:
:return:
:rtype:
"""
return 'Hello, world'
Well, according to this doc, if you press Ctrl + 1 on a method name, you will get what you need.
For your example (EDIT : if you set the option PyDev>Editor>Code Style>Docstrings>Doctag generation to always to get the type of the param), you will get :
def myFunction(self, a, b):
'''
@param a:
@type a:
@param b:
@type b:
'''
return 'Hello, world'
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