When you create a new project in WebStorm, you are given the option to create a new directory structure prepopulated with files: libraries, stylesheets, etc. for patterns like HTM5 boilerplate, Twitter boilerplate, etc.
How does one create one's own template for this? Is importing dummy projects the hack for it?
Create a multi-project template from an existing solutionOn the Project menu, choose Export Template. The Export Template Wizard opens. On the Choose Template Type page, select Project Template. Select one of the projects that you want to export to a template, and then choose Next.
A project template is a project that includes work packages and actions that you know you will frequently apply to various projects. You may also want to use a project template if you want to standardize the tasks you are using for projects, such as obtaining building permits, or creating architectural drawings.
Create a custom templateFrom the left menu, under Your Practice, select Work. Select Manage templates. Select Create template and enter a template name. Select Repeat to set up repeated due dates, and use the fields that appear to specify the interval between due dates.
I suggest not using templates. I find it far more easy and maintainable to create "empty" projects (from existing projects, of course) in a git repo (bitbucket, github, ...), clone one, and start from there.
The .idea
should be in the repo, but .idea/workspace.xml
should be ignored, as per the documentation.
This gives you the opportunity to gradually refine your template, and share it easily with a team.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With