473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Macro or tip to have automatically updated file headers ?

Is there any way to maintain automatically a header file like this:

/*
*
************************************************** ********************************
* JJStep_RateInstance.cs
* Author: Anthony Nguyen on 02/11/07 11:10:00
* Last Modified by: Anthony Nguyen on 02/11/07 11:00:00
*
* Description:
* - ???
*
* Notes:
* -
*
* To do:
* -
*
* Known Bugs:
* -
*
*
************************************************** ********************************
*/

which will automatically be created when you create a new file or when
you press a certain combination of keys at the top of the current
file.
It would also update the last modified line when saving.

I have no experience with Visual Studio macros.

Thanks very much for reading this !
Anthony

Nov 12 '07 #1
2 1388
Anthony,

With new files, you can actually find the templates in the VS.NET
install directory (or create your own) which have the appropriate
information at the top.

However, when saving, you will have to actually create a add-in for
VS.NET which will update the information for you, so it's better to just
look into creating an add-in and doing all the work there. It's going to be
more work than just a macro, mind you.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"BlueTrin" <bl******@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
Is there any way to maintain automatically a header file like this:

/*
*
************************************************** ********************************
* JJStep_RateInstance.cs
* Author: Anthony Nguyen on 02/11/07 11:10:00
* Last Modified by: Anthony Nguyen on 02/11/07 11:00:00
*
* Description:
* - ???
*
* Notes:
* -
*
* To do:
* -
*
* Known Bugs:
* -
*
*
************************************************** ********************************
*/

which will automatically be created when you create a new file or when
you press a certain combination of keys at the top of the current
file.
It would also update the last modified line when saving.

I have no experience with Visual Studio macros.

Thanks very much for reading this !
Anthony

Nov 12 '07 #2
On Nov 12, 4:01 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Anthony,

With new files, you can actually find the templates in the VS.NET
install directory (or create your own) which have the appropriate
information at the top.

However, when saving, you will have to actually create a add-in for
VS.NET which will update the information for you, so it's better to just
look into creating an add-in and doing all the work there. It's going to be
more work than just a macro, mind you.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"BlueTrin" <bluet...@gmail.comwrote in message

news:11**********************@57g2000hsv.googlegro ups.com...
Is there any way to maintain automatically a header file like this:
/*
*
************************************************** ********************************
* JJStep_RateInstance.cs
* Author: Anthony Nguyen on 02/11/07 11:10:00
* Last Modified by: Anthony Nguyen on 02/11/07 11:00:00
*
* Description:
* - ???
*
* Notes:
* -
*
* To do:
* -
*
* Known Bugs:
* -
*
*
************************************************** ********************************
*/
which will automatically be created when you create a new file or when
you press a certain combination of keys at the top of the current
file.
It would also update the last modified line when saving.
I have no experience with Visual Studio macros.
Thanks very much for reading this !
Anthony
Thanks very much for the reply indeed, anybody has made already such
an addin ?
Or is there a commercial addin doing this :?

Anthony

Nov 12 '07 #3

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

Similar topics

25
by: Andrew Dalke | last post by:
Here's a proposed Q&A for the FAQ based on a couple recent threads. Appropriate comments appreciated X.Y: Why doesn't Python have macros like in Lisp or Scheme? Before answering that, a...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
1
by: Michael Eisner | last post by:
I have an MS Access 8.0 (Office97) program that has a form called FO-008 that I need to replace on several users computers in different locations without me being there doing it manually. I'm...
17
by: sounak | last post by:
How could we get a macro name from a macro value such that in a header file #define a 100 #define b 200 now the source file will be such that the user gives 100 then the value is outputted as...
5
by: ConfusedMay | last post by:
Hi Experts, I just want to know if it's possible to schedule run macro in access 2003 automatically every night, so users can see the updated data early in the morning without have to wait for me...
2
by: deve8ore | last post by:
Hello, I have built a macro to automatically go to a specific directory and a specific folder, however the names of the files I need to automatically locate change names every month. I.e. - I...
3
by: deve8ore | last post by:
Hello, I have built a macro to automatically go to a specific directory and a specific folder, however the names of the files I need to automatically locate change names every month. I.e. - I...
33
by: Peng Yu | last post by:
Hi, __PRETTY_FUNCTION__ is a macro that gives function name, etc. I'm wondering if there is a macro to get the class name inside a member function. Thanks, Peng
1
by: Catbkr1 | last post by:
I have to automatically create some Excel Spreadsheets based on automatically generated .CSV files that are produced overnight. Each .CSV has several columns that need to be deleted. The same...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.