XML comments header
-
Dear Friends, I am looking into someones project in C#. What i noticed is that they have XML comments header on the top of every source file. Can you please tell me how to *automate* this process ? I mean, what i want is that whenever i add new class or source file, this header should get generated automatically on the top of the file. If automation not possible then what is the shortcut to generate these XML tags ?Here is the header: //----------------------------------------------------------------------- // <copyright file="MyClass.cs" company="ABC"> // Copyright (c) ABC Corporation. All rights reserved. // <author>Imtiaz(imtiaz)</author> // <created>3/12/2007</created> // <LastUpdated>4/12/2007</LastUpdated> // </copyright> // <summary> // Some kind of automation. // </summary> //-----------------------------------------------------------------------
Imtiaz
-
Dear Friends, I am looking into someones project in C#. What i noticed is that they have XML comments header on the top of every source file. Can you please tell me how to *automate* this process ? I mean, what i want is that whenever i add new class or source file, this header should get generated automatically on the top of the file. If automation not possible then what is the shortcut to generate these XML tags ?Here is the header: //----------------------------------------------------------------------- // <copyright file="MyClass.cs" company="ABC"> // Copyright (c) ABC Corporation. All rights reserved. // <author>Imtiaz(imtiaz)</author> // <created>3/12/2007</created> // <LastUpdated>4/12/2007</LastUpdated> // </copyright> // <summary> // Some kind of automation. // </summary> //-----------------------------------------------------------------------
Imtiaz
-
Dear Friends, I am looking into someones project in C#. What i noticed is that they have XML comments header on the top of every source file. Can you please tell me how to *automate* this process ? I mean, what i want is that whenever i add new class or source file, this header should get generated automatically on the top of the file. If automation not possible then what is the shortcut to generate these XML tags ?Here is the header: //----------------------------------------------------------------------- // <copyright file="MyClass.cs" company="ABC"> // Copyright (c) ABC Corporation. All rights reserved. // <author>Imtiaz(imtiaz)</author> // <created>3/12/2007</created> // <LastUpdated>4/12/2007</LastUpdated> // </copyright> // <summary> // Some kind of automation. // </summary> //-----------------------------------------------------------------------
Imtiaz
I use a code snippet to enter a standard header for my files. Though you can set defaults values I haven't found a way to input dynamic values such as date and file name.
only two letters away from being an asset
-
I use a code snippet to enter a standard header for my files. Though you can set defaults values I haven't found a way to input dynamic values such as date and file name.
only two letters away from being an asset
-
Mark Nischalke wrote:
I haven't found a way to input dynamic values such as date and file name.
I think that works from the macros. At least I think it did back in Visual Studio 6. I don't think I've used them since then.
led mike
You can certainly do dates and in the new version too.
Kevin
-
Mark Nischalke wrote:
I haven't found a way to input dynamic values such as date and file name.
I think that works from the macros. At least I think it did back in Visual Studio 6. I don't think I've used them since then.
led mike
Do you have an example for setting dynamic values in snippets? I'd love to be able to insert the current date automaically.
only two letters away from being an asset