I'm just wondering if theres a way to automatically insert a 'file header comment' into every new C++ file created (and maybe a different file header comment for C++ header files created).
Schools got me in the habit of documenting code very well and I'm trying to make it a little easier on myself. I have a farily consistent template that looks something like this:
Code:
/******************************************************************************
* Filename: -
* Date Modified: -
* Reason Modified: -
* Date Created: -
* Author: -
* Purpose: -
* Dependencies: -
*****************************************************************************/
The specifics of the template might change slightly over time, but it should generally stay the same. I'd prefer to learn this in VC++6 (a macro maybe?) but I'd be willing to learn another IDE for this feature if its a good one (preferably Dev-C++ or Eclipse).
Actually if you know how to do this for ANY IDE/text/code editor I'd be interested, I was asking for C++ but I use a bunch of languages as side projects, and its becoming more and more important to have a consistent documentation format.
I tend to enjoy using vi alot in Linux (actually vim), and this would be an INCREDIBLY handy feature if anyone knew how to do this. Basically I'm asking (in vim) if I could create a sort of 'command' or macro to 'paste' a header template comment into a document. I use a few languages in Linux and would love this ability.