简体   繁体   中英

File template C++ Visual Studio 2012

Is it possible in Visual Studio, when creating a new file, producing automatically something like this:

// <filename>.<ext>
//   Author: <name>
//   Update: <date>

I'm currently working with C++ projects, and this would be very helpfull!

EDIT:

Using Visual Assist X should be fine! I'll update
Yes, I will definitely use Visual Assist X!

Add a file like you show to an existsing project, then use File->Export Template... and select the file you just created. It will create a template for you, and by editing the files in the zip it you can get pretty close. Not sure if you can get the date right though.

Alternatively you can create a snippet for it, but that's less extensible.

Finally as WhozCraig suggested: creating Add-Ins is not too hard and gives you total control.

我在设置选项中什么都没看到,但是为什么不保存一个空的C ++文件,而该文件只是您添加到项目中的,如果我发现任何东西,我都会对其进行更新。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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