473,471 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Automatic header comments in .cs files

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

Oct 17 '06 #1
1 1928
klm

kl******@o2.pl wrote:
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

Oct 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: beliavsky | last post by:
Ideally, one can use someone's C++ code by just looking at the header files (which should contain comments describing the functions in addition to function definitions), without access to the full...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
6
by: Matt | last post by:
I have begun designing and programming in C++ after a several years away from software engineering/programming. I am looking for an "automatic C++ header generator." I have what seems to be...
18
by: Exits Funnel | last post by:
Hello, I'm a little confused about where I should include header files and was wondering whether there was some convention. Imagine I've written a class foo and put the definition in foo.h and...
11
by: Haro Panosyan | last post by:
My appologies, this is not directly C/C++ related. I have a C++ library, which is going to be shipped as compiled library, but the header files are going to be as source code, so people can...
15
by: Kannan Goundan | last post by:
Maintaining a C++ header file can be painful. I want a way to automatically generate header files from the implementation file. Does anybody know of a program that does this? If not, I'd like...
6
by: Divya | last post by:
Hi, I have a web page which generates a CSV file based on some user input. When this file is downloaded by the user, the file is being automatically converted to .xls. Any idea how I can prevent...
8
by: Eric | last post by:
I am writing a program with several header files. I would like for some of them to be aware of others. Here is a small example of my problem in three different files: //// main.c++ #include...
1
by: toto | last post by:
Dear friends, I'm quite new in template programming but they are giving me a very hard time. I'm using gcc as a compiler and I'm mainly develop for linux and windows. My problem is that I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.