Meeting notes often start with the same headings even though the topic changes from one meeting to the next. In IntelliJ IDEA on the Linux desktop, a file template puts that starter text into each new file you create from it.

A custom variable such as ${MEETING_TOPIC} gives the New dialog a field for text that changes each time. IntelliJ IDEA puts the value you enter in place of the variable when it creates the file.

The Default scheme makes a personal template available in the other projects you open in the same IDE. Each generated file is an ordinary file you can edit independently.

Steps to create a file template in a JetBrains IDE:

Start with an open, trusted project and the Project tool window visible. As in a new installation, IntelliJ IDEA shows its main menu under the Main Menu button in the window header. The screenshots show the meetings project in ~/IdeaProjects.

  1. Open Settings with Ctrl+Alt+S.

    If the empty editor shows a Junie installation offer, you can open Settings while the offer is visible.

  2. Expand Editor in the sidebar if its entries are hidden.
  3. Select File and Code Templates under Editor.
  4. Switch to the Files tab if another tab is active.
  5. Open the Scheme list if it shows Project.
  6. Press Up Arrow to highlight Default if the Scheme list is open.
  7. Press Enter if Default is highlighted in the open Scheme list.
  8. Click the + button above the template list on the Files tab in the Default scheme.
  9. Replace Unnamed in Name with an unused template name such as Meeting Notes.
  10. Press Tab to focus Extension.
  11. Replace the selected extension with txt.
  12. Click the blank template body below File name.

    The optional File name field stays empty so the IDE asks for a name each time.

  13. Enter the following line in the template body.
    Topic: ${MEETING_TOPIC}
  14. Click OK in Settings to save the template.
  15. Select the destination folder in Project, such as the meetings project root.
  16. Click Main Menu in the upper-left corner.
  17. Open New in the File menu.
  18. Select your template by name from New.
  19. Enter an unused base name such as release-meeting in File name.

    The template supplies the .txt extension.

  20. Press Tab to focus MEETING TOPIC.
  21. Enter your meeting topic in MEETING TOPIC, such as Release planning.
  22. Click OK to create the file.
  23. Confirm that the first line of the new .txt file in the editor reads Topic: followed by the value you entered, such as Topic: Release planning.
Share this guide