修改默认Visual C ++项目模板 [英] Modify Default Visual C++ Item Templates

查看:171
本文介绍了修改默认Visual C ++项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio社区2013中,无法在C ++项目中创建和使用自己的项目模板。

In Visual Studio Community 2013 it's not possible to create and use your own item templates in a C++ project.

我需要能够添加新的无扩展源代码文件到我的项目。现在,每次我添加一个新的源文件,我需要重命名文件后,在解决方案资源管理器中,并删除 .cpp 扩展,因为它只是在项目创建时自动添加。
有一个文件在某处有类似: TargetFileName =$ fileinputname $ .cpp其中我可以删除 .cpp

I need to be able to add new extensionless source code files to my projects. Now, everytime I add a new source file I need to rename the file afterwards in the Solution Explorer and remove the .cpp extension because it's just added automatically when the item is created. Is there a file somewhere that has something like: TargetFileName="$fileinputname$.cpp" where I can just remove the .cpp part?

感谢。

推荐答案

正确的方法是创建一个添加新项目向导。

The right approach is to make an "Add New Item Wizard".

我想创建一个,但我只能找到如何做一个新建项目向导。

I'm trying to make one, but I can only find documentation on how to make a "New Project Wizard" instead.

我发布了一个新问题:在Visual C ++中创建添加新项目向导

I posted a new question: Create "Add New Item Wizard" in Visual C++

这篇关于修改默认Visual C ++项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆