简体   繁体   English

我可以像在Visual Studio上一样在Eclipse上创建项目模板吗

[英]Can I create Project Template on Eclipse like on Visual Studio

Visual Studio can easily create a project template from an existing project by exporting project template and it will magically appears in visual studio template directory and in IDE. Visual Studio可以通过导出项目模板轻松地从现有项目中创建项目模板,它会神奇地出现在Visual Studio模板目录和IDE中。

Does Eclipse have such a feature ? Eclipse是否具有这种功能?

At this point, I don't know of a way to do this. 在这一点上,我不知道这样做的方法。 But the simplest hack I can think of would be to export an existing project and keep a folder somewhere of templates you could quickly import, rename, and go on with. 但是,我能想到的最简单的方法是导出现有项目,并在模板的某个位置保留一个文件夹,以便您可以快速导入,重命名并继续使用。

Looks like there have been some aborted attempts at doing this in the past - see sourceforge.net/projects/protewiz/ - but it doesn't look like that project's been updated in over a year. 看起来过去曾经做过一些失败的尝试-请参阅sourceforge.net/projects/protewiz/-但看起来该项目似乎已经超过一年了。

And it looks like CDT has some project template facilities (see help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html and help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtoregistertemplates.html). CDT似乎具有一些项目模板功能(请参阅help.eclipse.org/help33/index.jsp?topic=/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html和help.eclipse.org /help33/index.jsp?topic=/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtoregistertemplates.html)。

Hope that helps a bit. 希望有点帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM