Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. XML comments header

XML comments header

Scheduled Pinned Locked Moved C#
questioncsharptestingtoolsxml
6 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Imtiaz Murtaza
    wrote on last edited by
    #1

    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

    L N 2 Replies Last reply
    0
    • I Imtiaz Murtaza

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Are you using Visual Studio? If so look on the menu under Tools/Macros/Macro Explorer

      led mike

      1 Reply Last reply
      0
      • I Imtiaz Murtaza

        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

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        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

        L 1 Reply Last reply
        0
        • N Not Active

          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

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          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

          K N 2 Replies Last reply
          0
          • L led mike

            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

            K Offline
            K Offline
            Kevin McFarlane
            wrote on last edited by
            #5

            You can certainly do dates and in the new version too.

            Kevin

            1 Reply Last reply
            0
            • L led mike

              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

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups