如何修改新文件的模板?
How to modify the template of a new file?
当我创建一个新的Python文件时,它会自动填充一行
__author__ = '<mynamehere>'
其中 <mynamehere>
是 Pycharm
看到的我的身份
我在哪里可以修改此模板以添加更多有用的信息? (从 # coding=utf-8
开始)?
我查看了我的 Pycharm 安装文件,但没有找到 __author__
。
This is configurable 在 File | Settings | Editor | File and Code Templates | Python Script
尽管提到了 For current project
,但该设置在系统范围内应用(您可以通过 Default settings
中的相同路径再次找到它,而不是 Settings
。
当我创建一个新的Python文件时,它会自动填充一行
__author__ = '<mynamehere>'
其中 <mynamehere>
是 Pycharm
我在哪里可以修改此模板以添加更多有用的信息? (从 # coding=utf-8
开始)?
我查看了我的 Pycharm 安装文件,但没有找到 __author__
。
This is configurable 在 File | Settings | Editor | File and Code Templates | Python Script
尽管提到了 For current project
,但该设置在系统范围内应用(您可以通过 Default settings
中的相同路径再次找到它,而不是 Settings
。