-
In the Project tool window, select the directory
or package in which you want to create a new file.
Choose or press Alt+InsertCommand N; Command Enter.
Alternatively, right-click the corresponding directory or package and select New from the context menu.
- Select File.
- In the New File dialog, in the field under Enter a new file name, type the file name and extension and click OK.
-
If the extension you have specified is not associated with any of the file types recognized by IntelliJ IDEA,
the Register New File Type Association dialog is displayed.
In this dialog, you can associate the extension with one of the recognized file types.
To do that, select the file type under Open matching files in IntelliJ IDEA and click OK.
As a result, the extension is associated with the specified file type.
If there are no appropriate file types for the new extension, you may want to create a new file type and associate the extension with that type. For more information, see Creating and Registering File Types.

