Reputation: 2070
I LOVE PHPStorm. However, I'm looking to take the 'PHP Class' file template, and essentially add a custom field in the creation for 'Extended Class'. I see no way to do this.
Is this possible?
Thanks in advance.
EDIT2: I asked a follow up but then figured it out by tinkering with it. My original question remains, however.
Upvotes: 0
Views: 302
Reputation: 165178
You cannot extend dialog window .. unless, maybe, via custom plugin (which has to be written in Java).
You can easily customize actual file template by adding new or removing existing elements -- Settings | Editor | File and Code Templates | Templates --> PHP Class. You can add any static text, use standard/built-in variables or perform some manipulations on values from built-in variables ... but any custom variables will be ignored (as dialog does not ask for their values).
Create and use separate file template -- this way IDE will ask for values for those additional variables. Unfortunately functionality of "New PHP Class" dialog window (like sync name space/file name editing etc) are not available here as it will be a completely different dialog.
P.S. Some related tickets:
Upvotes: 1