Sunday, February 12, 2006

Tips for IntelliJ - 1: Adding a new file template

IntelliJ allows you to use his own file templates. For instance, you can define an html file template. Then whenever you let IntelliJ to create a new html file, your file template is ready to fill. To do this, go to File/Settings/File Templates. Add a new template in the Templates tab. Fill the content of the file template. Then go to the Project tree. Insert a new file by pressing Alt+Insert. You will see the new file template is there.

To see this in action:

No comments: