Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Platform/API C++

Reply
 
LinkBack Thread Tools Display Modes
Old 04-08-2005, 08:15 PM   #1 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
Question about VC++ 6.0 IDE (or other Windows IDE's)

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.
fp_unit is offline   Reply With Quote
Old 04-08-2005, 08:22 PM   #2 (permalink)
nimaj
Registered User
 
Join Date: Jan 2004
Location: Poughkeepsie, NY
Posts: 18
nimaj is on a distinguished road
Send a message via AIM to nimaj Send a message via Yahoo to nimaj
I can't speak for VC++, but I do know that Eclipse has templates that you can edit. I assume VC++ does as well, digging around a little will tell you.
nimaj is offline   Reply With Quote
Old 04-08-2005, 09:10 PM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Obviusly this belongs here...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 04-09-2005, 06:34 AM   #4 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 732
DJMaze is on a distinguished road
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Template\readme.txt
Code:
The Visual C++ Resource Templates and Custom AppWizards are installed at this location.
User-created Resource Templates should be copied here in order for them to show up in the Insert Resource dialog.
Maybe this helps
DJMaze is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:29 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting