CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2003
    Location
    Corvallis, OR
    Posts
    315

    macro to add code documentation

    Is there a macro or an add-in out there that will allow you to hi-lite the blue part and automatically generate the template for the red part? I think I had something like this for VBA at one time, wondering if its possible for c#.
    Code:
    /// <summary>
    /// a function for doing stuff
    /// </summary>
    /// <param name="param1">The first parameter</param>
    /// <param name="param2">The second parameter</param>
    public void MyFunc( object param1, object param2)
    {
        ...
    }

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: macro to add code documentation

    I am not sure of any add-on, but why search for one when you can do it with three key-strokes. Just type /// on the line before function declaration and press enter, it will automatically generate the templte for you. It works in Visual Studio.

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: macro to add code documentation

    Try GhostDoc (http://www.roland-weigelt.de/ghostdoc/). I was very satisfied with it.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  4. #4
    Join Date
    May 2003
    Location
    Corvallis, OR
    Posts
    315

    Re: macro to add code documentation

    Quote Originally Posted by Shuja Ali
    I am not sure of any add-on, but why search for one when you can do it with three key-strokes. Just type /// on the line before function declaration and press enter, it will automatically generate the templte for you. It works in Visual Studio.
    I knew there must be something simple... Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured