Click here to Skip to main content
15,878,871 members
Articles / Programming Languages / C++
Article

Morefast Doc-Comments Maker

Rate me:
Please Sign up or sign in to vote.
4.50/5 (9 votes)
5 Dec 20022 min read 46.8K   1.1K   21   3
This Add-In Is About Easy File/Function Commenting ...

Introduction

While writing a project I got into many difficulties related to commenting. I solved these using the morefast add-In tool after implementing a little file/function commenting functionality. So I have made this little but useful add-in to help people who want to organize their code. I want to extend this add-in and have many ideas but due to time problems (which everyone has) I am posting only this three featured add-in.

There are three files.

  • CppCWiz.dll
  • Macro.txt
  • CommTemp.txt
Extract these files in one directory.

How you can make a new macro:

  1. First #@ sign.
  2. Macroname Covered With $.
  3. then = YOURSTRING
  4. Last @#.
    e.g.
    #@ $UD_COMPANYNAME$ = Sahajanand Software Private Ltd. @#
    #@ $MyName$ = Manish Pansiniya @#

How can you make changes to the template:

//
// Default Template For File Comment Look Like This Look Like This.
//
[FILE COMMENT]
/*******************************************************************
 *                                     $FILENAME$
 *******************************************************************
 *  AUTHOR      : $AUTHOR$
 *  PROJECT     : $PROJECT$
 *  DESCRIPTION : $ASKTOUSERDESCRIPTION$
 *  ----------------------------------------------------------------
 *  Revision History :
 *  $DATE$  $USERNAME$    Initial Version.
 *
 *  ----------------------------------------------------------------
 *                         Copyright (c) 2002 $UD_COMPANYNAME$
 ******************************************************************/
[~FILE COMMENT]
Now, you can see the macro with $ signs. These macros are defined in macro.txt. We saw that in the previous section. $FILENAME$ is my internal macro which you can't change.  Internal fixed macros:
"$FILENAMEWPATH$" - FileName With Path
"$FILENAME$"      - FileName
"$SELECTION$"     - Current Selection In Workspace.
"$PROJECT$"       - Project Name.
"$AUTHOR$"        - Author Name. You must provide this in macro.txt.
"$DATE$"          - Today's Date.
So you can't use these macros except author. You must define author macro in macro.txt file. Next macro is $ASKTOUSERDESCRIPTION$. If you want to ask any information from the user, then define ASKTOUSER and then your description, e.g.
$ASKTOUSERFUNCTION
$ASKTOUSERCHANGELOG etc.

Add-In Buttons Descriptions (AddIn Utilities)

FileComment Button :- This button is file comment. File comment template is stored in CommTemp.txt file. You can change the file comment by changing the file comment template in the CommTemp.txt file.

FunctionComment Button :- This button is the function comment. The function comment template is stored in the CommTemp.txt file. You can change the function comment by changing the function comment template in the CommTemp.txt file.

ChangeLog Button :- This button is the ChangeLog comment. The ChangeLog comment template is stored in CommTemp.txt. You can change the ChangeLog comment by changing the function comment template in the CommTemp.txt file.

Option :- Options are not yet fully implemented but you can open macro.txt and the Commtemp.txt file using Explorer, and you can see online your macros.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Founder IntelliPro Solutions Pvt. Ltd.
India India
A 8 or something in .NET, living in Ahmedabad, India owned IntelliPro Solutions Pvt. Ltd..

Currently working on .NET technologies, MVC and Silverlight.

My little blog is for helping community with the solution for problems or helping them to understand new technology. You can reach to my blog at http://maniish.wordpress.com.

To contact me, post comment here or email me at manish AT iprospl.com
This is a Organisation (No members)


Comments and Discussions

 
QuestionOnly for VS 6.0 ? Pin
leandrobecker10-Dec-02 4:43
leandrobecker10-Dec-02 4:43 
AnswerRe: Only for VS 6.0 ? Pin
mkcx7-Jul-04 3:41
mkcx7-Jul-04 3:41 
GeneralNice! Pin
Mustafa Demirhan6-Dec-02 12:46
Mustafa Demirhan6-Dec-02 12:46 
Nice work, but it is better to provide the release version (not the debug version) of the DLL file in the demo project Smile | :)

Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix

<nobr>They say I'm lazy but it takes all my time

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.