自定义项目类型模板

自定义项目类型模板

本文介绍了自定义项目类型模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WebStorm中创建新项目时,可以选择创建一个预填充文件的新目录结构:库,样式表等,用于HTM5样板,Twitter样板等模式.

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?

推荐答案

我建议不要使用模板.我发现在git仓库(bitbucket,github,...)中创建空"项目(当然是从现有项目中),克隆一个并从那里开始更容易和可维护.

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.

.idea应该在仓库中,但是根据文档,.idea/workspace.xml应该被忽略.

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.

这篇关于自定义项目类型模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 09:33