Add new fields to New Project wizard?
Hi,
I am NOT a Java programmer and was wandering if anyone has an already built module that can be easily copy/edited/pasted to allow me to prompt for some additional information when creating a new PHP project? Like the '${PROJECT_NAME}' field.
What i'm wanting to do, is prompt (preferably by drop down, with a set of key->values taken from a plain text file or XML file?) for a project 'Category' and inset this into my DOC block at the start of each PHP File/Class.
And to be able to have some tick boxes maybe (again taken from a plain or XML file in the format of <Tickbox Name>-<fileTemplateFolder>), so that i can automatically add some files/folders to the project root, eg. add a composer.json file, a box.json file, default folder structure type thing. Something like : If this box is ticked, copy ~/,idea/filetemplates/<X> ./project_folder
Another possibility would be to just have a set of options (tick boxes drop downs) and then call an external command with these options as parameters.
I have had a look at http://www.jetbrains.org/intellij/sdk/docs/tutorials/project_wizard.html but as i said im not a Java guru, and before i start to bang my head off my desk and monitors, wanted to see if someone had already done this.
Thanks
M
请先登录再写评论。
Hi, you can define some of this in File & code templates (File | Settings | Editor | File and Code Templates).
You can also save projects as templates: link to our help page.
But as for your direct question: I haven''t seen any related plugin that would allow this. Let's see if anyone else has other ideas.
Something like Yeoman perhaps (http://yeoman.io/authoring/)?
Yeoman plugin available so you will be able to create new project using that tool from Create New Project screen.