1 Docstring format
File -> Settings -> Tools -> Python Integrated Tools -> Docstrings -> Docstring format,选择google
File -> Settings -> Editor -> General -> Smart Keys -> Insert type placeholders in the documentation comment stub
2 Live Templates
File -> Settings -> Editor -> Live Templates
添加方式如下:
进入 Live Templates 设置页面,点击右方加号,添加 Template Group,再添加 Live Template
在下方添加 Abbreviation(快捷键缩写),Desctiption (快捷键描述)
- 在下方添加 Applicable(可应用的语言范围)