Vs 2003 allows you to write macros that can automate the IDE. You can acess these through the Macro Explorer - just go to View->Other windows->Macro Explorer and look through the Macros already present there. You'll see we provide a set of sample macros that do various cool things such as automating the editor and the debugger. Just right click on one, choose Edit and view the code. You'll see these work by calling through the automation model in VS. These macros can be called from the command window or by double clicking and running the macro from the Macro Explorer. In Everett though these could only be written in VB.
One of the macros we wrote was for a debugger specific issue a while ago. Our QA would find a hang when debugging a program and would write up a bug report for it. We would always ask for call stacks - however it was painful to look through each thread and grab each and everyones call stack and paste it. So we wrote the DumpStacks macro which generated the callstacks for each thread. Simple.
- Do you have any cool macros out there that you use (I'm trying to dig up an old favorite of ours that dumped out the keyboard commands right now)?
- On a seperate note, have many of you used this functionality before or knew it existed? We had a discussion about this today- about whether C# customers knew about this functionality at all, so any feedback would be appreciated!
Addendum: A co-worker and I were further discussing this and thought it would be cool to hear feedback if anyone relied on this extensively too? Let us know!