Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm set pattern for newly created file

Every time when I create .py file in django project, I need to add two strings

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

Is there any way to set some pattern for newly created python files in PyCharm?

like image 753
Ivan Semochkin Avatar asked Feb 26 '26 17:02

Ivan Semochkin


1 Answers

File->settings->Editor->File and Code Templates->Python Script

enter image description here

like image 170
Cc Chen Avatar answered Mar 01 '26 08:03

Cc Chen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!