NetBeans contains many predefined templates for creating new
files, but these templates don't have to fit your needs and you
want to change or create new templates. I will try to explain it
from PHP point of view, but this is generic NetBeans future, no PHP
specific. Originally I have prepared one blog entry about this, but
then I realized that this is too long. There is the first part,
which describes "static" templates.
Basically it's very simple. You can do it from Template...