Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you edit the default `__author__ = name` line in PyCharm

Tags:

python

pycharm

In pycharm, when making a new "Python File" it has some content by default: __author__ = 'david'.

What I want to do, is changing this default content by the following shebang:

#!/usr/bin/env python
#-*- coding: utf-8 -*-

This way, when opening new python files on pycharm, this content above will already be there. How to do this?

like image 353
dvsaraiva Avatar asked Feb 14 '14 17:02

dvsaraiva


1 Answers

The menu path is now File > Settings > Editor > File and Code Templates. You might need to change it on multiple templates depending upon how many of your Python templates have this at the top.

like image 171
Palu Macil Avatar answered Oct 15 '22 04:10

Palu Macil