change comment header on new php file

This is a dumb little thing but it's been bugging me lately and I'm sure there's a way to change it that I just haven't found. Whenever I create a new php file, the file automatically is populated with a comment block at the top like this:

/**
* Created by PhpStorm.
* User: Ellie
* Date: 11/3/2016
* Time: 1:00 PM
*/

 

This is great because I always include a file header like that on my php project files. But I always have to edit it and add some other stuff like this:

/**
* Created by PhpStorm.
* Filename: my_file.php
* Descr: homepage for php project for client X
* User: Ellie Armsby
* Date: 11/3/2016
* Time: 12:31 PM
*/

Surely there's a way to edit this comment block so the extra things are added. I don't expect it to add the file name and description of course, but I would like to change the name and add a space for me to put the filename and description. Is this possible?

0

Hi there,

File & Code Templates -- https://confluence.jetbrains.com/display/PhpStorm/File+Templates+in+PhpStorm

The one with PHP File Header is located on "Includes" tab.

But you can edit default "PHP File" template and have your header comment defined right there if you wish.

1

Perfect! That was exactly what I was looking for! Thanks so much!

0
Avatar
Permanently deleted user

Excellent - I was looking through the 'Files' tab and couldn't find it.

0

请先登录再写评论。