[英]python IDE for auto-complete Docstring
I am looking for a Python IDE which can generate the docstrings framework for me automatically. 我正在寻找可以自动为我生成docstrings框架的Python IDE。 For example:
例如:
def GetTextByCtrlName(self, _hwnd, _ctrName): ''' @desc: @param: _hwnd _ctrName '''
Then I can just fill the corresponding content. 然后,我可以填写相应的内容。
PyCharm has supported this since version 1.5. 自1.5版以来, PyCharm就已支持此功能。
First, configure the format you want the docstring to be generated. 首先,配置要生成文档字符串的格式。 Hit
CTRL
+ ALT
+ S
(on Windows), select the format in Project Settings > Python Integrated Tools. 按
CTRL
+ ALT
+ S
(在Windows上),在“项目设置”>“ Python集成工具”中选择格式。
Your choices are plain, Epydoc or reStructuredText 您的选择是普通的,Epydoc或reStructuredText
Once that is configured, make sure your cursor is on the method name and press Alt
+ Enter
. 配置完成后,确保光标位于方法名称上,然后按
Alt
+ Enter
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.