Automatic header comments in .cs files

  • Thread starter Thread starter klimmass
  • Start date Start date
K

klimmass

Hello
Does anybody know a tool/macro with can automatically add a header
comment to a .cs file at saving it ?
I want something like this:

eg.
///Automatic comment
//CREATED BY: klimmass
//MODIFIED BY: klimmass
//MODIFICATION DATE: DateTime.Now()

thanks for reply
 
Hello
Does anybody know a tool/macro with can automatically add a header
comment to a .cs file at saving it ?
I want something like this:

eg.
///Automatic comment
//CREATED BY: klimmass
//MODIFIED BY: klimmass
//MODIFICATION DATE: DateTime.Now()

thanks for reply

Ansfer is : MACRO !

Sub MakeHeader()
Dim TS As TextSelection = DTE.ActiveDocument.Selection

TS.StartOfDocument()
TS.FindText("\<\@data\>.*$",
vsFindOptions.vsFindOptionsRegularExpression)
TS.Delete()
TS.Insert("<@data> " + Date.Now)

DTE.ActiveDocument.Save()
End Sub
 
Back
Top