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. Macro to insert File header and function header in C#

Macro to insert File header and function header in C#

Scheduled Pinned Locked Moved C#
csharptoolsquestion
4 Posts 3 Posters 0 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.
  • J Offline
    J Offline
    jayart
    wrote on last edited by
    #1

    Hi, Any links to write file header and function header in c# files? I am looking at freeware plugins/ add-ins like in VC6 to automatically insert function headers and file headers. How easy is it to write own tools for same? Is there any inbuilt feature for this in VS2005 which I am missing? Thanks, Arti Gujare -- modified at 6:16 Friday 27th April, 2007

    C 1 Reply Last reply
    0
    • J jayart

      Hi, Any links to write file header and function header in c# files? I am looking at freeware plugins/ add-ins like in VC6 to automatically insert function headers and file headers. How easy is it to write own tools for same? Is there any inbuilt feature for this in VS2005 which I am missing? Thanks, Arti Gujare -- modified at 6:16 Friday 27th April, 2007

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can use snippets or modify the new class template.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      J 1 Reply Last reply
      0
      • C Christian Graus

        You can use snippets or modify the new class template.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        J Offline
        J Offline
        jayart
        wrote on last edited by
        #3

        Thank you Chritian Graus. Using the Export Template, I was able to export the template for the whole class which will surely be useful when I am writing a new class. But there are some existing class which I need to adhere to the coding standards. This is what I want to achieve. Open a file, Select a function, click the add-in/macro and a fucntion header in the form of XML comments should get added automatically. How can I do this? Thanks and Regards, Arti Gujare

        K 1 Reply Last reply
        0
        • J jayart

          Thank you Chritian Graus. Using the Export Template, I was able to export the template for the whole class which will surely be useful when I am writing a new class. But there are some existing class which I need to adhere to the coding standards. This is what I want to achieve. Open a file, Select a function, click the add-in/macro and a fucntion header in the form of XML comments should get added automatically. How can I do this? Thanks and Regards, Arti Gujare

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

          Have you looked at GhostDoc. http://www.roland-weigelt.de/ghostdoc/[^] It will do some of what you want if I understand you correctly. For a file header, you could try writing a code snippet.

          Kevin

          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