Is it possible to include interpreter path (or set any default code) when I create new python file in Pycharm?
<p>I haven't been able to find anything and I am not sure if this is the place I should be asking... </p>

<p>But I want to include the path to my interpreter in every new project I create.  The reason being is that I develop locally and sync my files to a linux server.  It is annoying having to manually type <code>#! /users/w/x/y/z/bin/python</code> every time I create a new project. Also would be nice to include certain imports I use 90% of the time.  </p>

<p>I got to thinking, in the program I produce music with you can set a default project file.  Meaning, when you click new project it is set up how you have configured (include certain virtual instruments, effects, etc).</p>

<p>Is it possible to do this or something similar with <strong>IDE</strong>, and more specifically, <strong>Pycharm</strong>?</p>

<p>You should open <strong>File</strong> in the main menu and click <strong>Default Settings</strong>, collapse the <strong>Editor</strong> then click <strong>File and Code Templates</strong>, in the <strong>Files</strong> tab click on the <strong>+</strong> sign and create a new <strong>Template</strong>, give the new template a name and extension, in the editor box put your template content, in your case <code>#! /users/w/x/y/z/bin/python</code> <strong>apply</strong> and <strong>OK</strong>. After that everytime you open a project, select that template to include default lines you want. You could make number of templates.</p>

python linux pycharm