File | Settings | Java Template Languages for Windows and Linux

IntelliJ IDEA | Preferences | Java Template Languages for macOS

⌘,⌘,⌘,⌥F7⌃⌥S

../../Shared/settings.png

This page is only available when Python plugin is installed and enabled!

Template languages pane

ItemDescription
Template languageSelect the desired template language for your project from the drop-down list. For example, you can mark your project as using Django templates even if it is not a Django project.

The available template languages are:

Template file typesIn this section, specify the types of files, where templates will be recognized.

Press ../../Shared/add.png to show the list of available file types, and choose the desired one.

Press ../../Shared/delete.png to delete the selected file type. Note that the default file types (HTML, XHTML, and XML) may not be deleted.

Django support skips directories not marked as Django templates, if they are marked as Resourses:

../../Shared/py_mark_directory_project_tool_window.png