LppEdd
LppEdd

Reputation: 21154

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!

Upvotes: 1

Views: 798

Answers (2)

stijn
stijn

Reputation: 35911

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.

Upvotes: 1

Johnathon
Johnathon

Reputation: 33

Nothing I've seen in the settings options but why not have a empty C++ file with that already stored that you just add to your project, if I find anything I'll update this.

Upvotes: 0

Related Questions