Tech Off Thread

10 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Boxed Comments in Visual Studio 2005

Back to Forum: Tech Off
  • User profile image
    PeterH

    Is there and easy way in which to insert boxed comments in Visual Studio without messing about with astericks formations and forward slashes?

    If not is there a tool to do it easily?

    Failing this how would I go about building an addon for Visual Studio?

    It may seem like a minor annoyance to have to do this, but I like to comment my code pretty thoroughly, and wasting time on this is starting to drive me up the wall.

    Thanks,

    PeterH

  • User profile image
    Sven Groot

    How is this different from XML comments?

    Whatever you mean exactly, I'm sure you could create a snippet for it in VS2005. Smiley

  • User profile image
    PeterH

    Sven Groot wrote:
    How is this different from XML comments?

    Whatever you mean exactly...


    /*****************************
     *                I mean these                 *
     *                                                      *
     *****************************/

    Edit: Channel 9 struggled with the formatting Perplexed

  • User profile image
    Tensor

    Forget that - you want XML Comments:

    For C# in 2003 & 2005 its ///

    For VB.NET in 2005 its '''

    For VB.NET in 2003 install VBCommenter

    Combine with nDoc for maximum goodness.

  • User profile image
    PeterH

    Tensor wrote:
    Forget that - you want XML Comments:

    For C# in 2003 & 2005 its ///

    For VB.NET in 2005 its '''

    For VB.NET in 2003 install VBCommenter

    Combine with nDoc for maximum goodness.


    I'm using C++ in 2005

  • User profile image
    AndyC

    I thought the widely held opinion on these was not to fully box them, i.e.

    /**********************************
                              Like this
    **********************************/

    At which point you don't need any fancy tools to do it.

  • User profile image
    Tensor

    PeterH wrote:
    Tensor wrote: Forget that - you want XML Comments:

    For C# in 2003 & 2005 its ///

    For VB.NET in 2005 its '''

    For VB.NET in 2003 install VBCommenter

    Combine with nDoc for maximum goodness.


    I'm using C++ in 2005


    I believe C++ in 2005 has XML comments too. Slap a /// in there before a function, see what happens.

  • User profile image
    Minh

    It's 2000-freakin-5 already. Why don't we have comments like this:



  • User profile image
    AndyC

    Minh wrote:
    It's 2000-freakin-5 already. Why don't we have comments like this:


    Now if they were transparent and "floating" above the code you might have something. A few 3D transistions wouldn't go amiss either...

  • User profile image
    Dr Herbie

    Minh wrote:
    It's 2000-freakin-5 already. Why don't we have comments like this:





    You know, I'm sure that two or three years ago I saw screen shots of a system for a C++ editor that showed comments as fully WYSIWYG, formattable text like a word processor. 
    I've googled for it, but can't find any trace Sad
    So it's not a new idea, but it just never seemed to catch on.

    Maybe we need to specify a standard for inserting formatting details into ASCII comments (so the compilers will ignore them). Then the editor writers can implement the standard?

    Herbie

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.