PyCharm provides file templates for most of the languages that it supports. This lets you create the files with the initial content appropriate for the file purpose. For example, there are file templates for Python, HTML/HTML5/XHTML, and JavaScript files.

Generally, the file name extension for a template-based file is set automatically so you don't need to specify it. For example, if you create a JavaScript file, it gets the .js extension. New HTML files get the .html extension.

See Also

Concepts:

Procedures:

Reference:

Web Resources: