Pycharm 如何自定义新建的 Python 文件的注释模版 All in One
Python code template
#!/usr/bin/env python3
# coding=utf-8
__author__ = 'xgqfrms'
__editor__ = 'vscode'
__version__ = '1.0.1'
__copyright__ = """
Copyright (c) 2012-2050, xgqfrms; mailto:xgqfrms@xgqfrms.xyz
"""
"""
/**
*
* @author xgqfrms
* @license MIT
* @copyright xgqfrms
* @created 2020-08-0
*
* @description
* @augments
* @example
* @link
*
*/
"""
print('py3 code template ')
print('人生苦短,我用拍三 ')
# python3 ./py3.py
test
$ python3 ./py3.py
# py3 code template
# 人生苦短,我用拍三
Python 3
=== 拍三 3
文件头注释
设置路径:Preferences
=> File and Code Templates
> Python Script
快捷键: command
+ ,
搜索 template
即可 ✅
Pycharm Community Version
https://www.jetbrains.com/zh-cn/pycharm/download/#section=mac
https://www.jetbrains.com/zh-cn/pycharm/download/download-thanks.html?platform=mac&code=PCC
refs
https://github.com/xgqfrms/vscode/blob/master/code-snippets/py3.json
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 ️,侵权必究⚠️!