idea-php-class-templates icon indicating copy to clipboard operation
idea-php-class-templates copied to clipboard

Custom file extensions

Open xificurk opened this issue 8 years ago • 3 comments

Hi, I really like this plugin, but I needed support for templates with other extensions than php, just like in standard File Templates. So here is PR for such a functionality.

There are many instances when this might come in handy, in my case I wanted to define a test case template for nette/tester that by convention uses phpt extension.

What this PR does:

  • You can define File Template with extension class.*.
  • When you select a template in PHP Class From Template dialog, the selected file extension is automatically changed based on the extension of the selected File Template, e.g. class.php -> php, class.phpt -> phpt.
  • The change of file extension in PHP Class From Template dialog does not interfere with standard PHP Class dialog.

xificurk avatar Sep 02 '17 16:09 xificurk

Thank you for your pull request, before I could merge could you merge your commits into single one?

aurimasniekis avatar Sep 07 '17 10:09 aurimasniekis

done

xificurk avatar Sep 08 '17 09:09 xificurk

@aurimasniekis ping

xificurk avatar Mar 28 '18 12:03 xificurk