I finally had time to improve my Visual Studio .NET keyboard shortcut summary macro. Instead of writing HTML to the console*, it now creates a HTML file in your user documents folder, and navigates the IDE to the created file:
Download the Keyboard Shortcut Summary Macro (2kb ZIP)
The advantage of a macro, of course, is that it queries the IDE for the actual keyboard bindings. It can also be sorted and grouped however you like. Very handy for erstwhile keyboard ninjas! This macro is tested and working in both VS.NET 2003 and VS 2005. Note that the macro generates an appropriately named file in each case:
It's also smart enough not to re-render if the file already exists. If you want to force a re-render, delete the file.
Here's how to install and run this macro:
* in VS 2005, there are a few minor extra dependencies: you'll have to add a reference to System.Xml and also import EnvDTE80.
I'm new at vb.net running vs 2005 and have 2 (stupid) questions.
1. I don't see Macros...IDE on my Tools menu.
2. How do I "import EnvDTE"? I'm familiar with the Imports statement but unsure how to do this instruction.
Thanks for any help!
maatthias on May 3, 2007 2:48 PMVery interesting, but my visual studio, unfortunately, does not accept the macro - seems like DataRow, DataTable, DataView, DataRowView etc does not exist... any idea why ?
This is indeed a neat trick, if it worked :)
Moe on August 3, 2007 10:07 AMVery interesting, but my visual studio, unfortunately, does not accept the macro - seems like DataRow, DataTable, DataView, DataRowView etc does not exist... any idea why ?
This is indeed a neat trick, if it worked :)
Moe on August 3, 2007 10:08 AM4. Add a reference to the System.Data namespace*; make sure it builds with no errors
Jeff Atwood on August 3, 2007 12:31 PMSorry, must have been blind. Seems like everything works :)
Thanks.
(Sorry for posting twice, don't know why that happened)
You rock!
Mike on September 7, 2007 12:57 PMFor VS 2005, in addition to a _reference_* to System.Data, I also had to change a line in the ViewToHtmlTable() method:
'groupName = ToString(drv.Item(groupColumnName))
groupName = drv.Item(groupColumnName).ToString()
* for about 1/2 hour, I stared at the _Imports System.Data_ statement and said to myself, "I have a reference to System.Data."
Thanks very much for the great macro!
Didn't work for me. I tried everyones suggestions and the macro builds fine, just doesn't create the file. I'm running XP 64bit with VS.NET 2005
i3adme on December 5, 2007 2:24 PMWorks on Visual Studio 2008TS
I only needed to add references to System.Data.dll and System.XML.dll and their corresponding "Imports" and way to go.
really nice work :)
cheers
Jaume on April 22, 2008 2:29 AMGreat macro!
Thank somuch !
I've posted the cheat sheet result for the Visual Studio 2008 default C# keyboard shortcuts to save people the trouble of getting the macro running. It's here:
http://nerdfortress.wordpress.com/2008/09/02/visual-studio-2008-cheat-sheet/
Kurt Griffiths on September 13, 2008 8:03 PMThis works in VS2008. Thanks!
mawaldne on January 15, 2009 11:19 AM| Content (c) 2009 Jeff Atwood. Logo image used with permission of the author. (c) 1993 Steven C. McConnell. All Rights Reserved. |