JerryKwan/Sublime-Text-2-pydocstring

语言: Python

git: https://github.com/JerryKwan/Sublime-Text-2-pydocstring

一个Sublime Text 2插件,可自动为模块/类/函数生成docstring
a Sublime Text 2 plugin to automatic generate docstring for module/class/function
README.md (中文)

崇高文本-3- pydocstring

一个Sublime Text 3插件,可自动为模块/类/函数生成docstring

doc string.朋友

docstring.py是一个python docstring插件,你可以使用这个插件来生成docstring 自动模块,类或函数。

安装

将docstring.py复制到 您的ST2用户包文件夹(Sublime Text 3>首选项>浏览包...>用户)

用法

单击要生成docstring的位置,但不要选择任何内容 定义键绑定或菜单条目以方便快捷地使用此插件

我已将此添加到我的用户密钥绑定中:

 {"keys": ["ctrl+alt+s"], "command": "docstring"}

...以及Context.sublime菜单,它允许上下文菜单访问:

 { "command": "docstring", "caption": "Generate Docstring"}

module screenshop

class screenshop

function screenshop

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Sublime-Text-3-pydocstring

a Sublime Text 3 plugin to automatic generate docstring for module/class/function

docstring.py

docstring.py is a python docstring plugin, you can use this plugin to generate docstring
for the module, class or function automatically.

Installation

Copy docstring.py into
your ST2 User packages folder (Sublime Text 3 > Preferences > Browse Packages... > User)

Usage

Click on the position you want to generate docstring, but do not select anything, you could
define key bindings or menu entries to use this plugin easy and quick

I've added this to my User Key Bindings:

 {"keys": ["ctrl+alt+s"], "command": "docstring"}

...and this to Context.sublime-menu, which allow context menu access:

 { "command": "docstring", "caption": "Generate Docstring"}

module screenshop

class screenshop

function screenshop