创建新项目时更改标题 [英] Change header when creating new projects

查看:91
本文介绍了创建新项目时更改标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想知道如何更改最上面的评论:
//VerySimpleCalculator.cpp:定义控制台应用程序的入口点.
//

Hello,

I would like to know how to change the top comments that say :
// VerySimpleCalculator.cpp : Defines the entry point for the console application.
//

在生成项目或类时,在顶部显示我自己的自定义注释.我也不知道怎么办,每次都更改标头让我很烦.

谢谢

To my own custom comments at the top when I generate a project or a class. I cannot figure out how too, and I am annoyed with changing the header every single time.

Thanks

推荐答案

您好,Winux12,

Hi Winux12,

您可以使用自己的自定义注释创建自己的自定义Item模板.首先,请在您的项目中添加一个项目并添加您自己的注释,然后将此文件导出为项目模板.然后,每当您通过Visual将此项添加到任何项目时, Studio,它将使用您自己的注释.详细步骤,请参考:

You could create your own custom Item template with your own custom comments. Firs, please add an item in your project and add your own comments and the export this file as item template. Then every time when you add this item into any project through Visual Studio, it will use your own comments. Detailed steps, please refer to:

https://msdn.microsoft.com/en-us/library/tsyyf0yh.aspx

您还可以创建项目模板,该模板可让您在项目中使用自己的项目结构和注释.

And you also can create project template, which will let you use your own project structure and comments in project.

https://msdn.microsoft.com/en-us/library/xkh1wxd8.aspx

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于创建新项目时更改标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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