Did you know… There’s a macro for listing out all the keyboard shortcuts in Visual Studio? - #370
This sample has been around for ages, at least since Visual Studio .NET 2003 era. According to the blogosphere, the sample floating around out there came from a SDET Lance (who I knew back in the day). The one below came from Sean on the VS Editor team. Regardless, I think the easiest thing to say is the following sample comes from the Visual Studio Environment Team.
The macro below will list out all of your current keybindings in the Output Window.
If you’ve never run a macro before, it’s easy. Just go to Tools – Macros – Marcos IDE to open the Macros IDE. Then in the Project Explorer (the equivalent of the Solution Explorer for macros) open MyMacros-Module1. Cut and paste everything below into the Module1 file. Lastly, put your cursor anywhere within the ListCommands() method and hit F5.
The macro is in the attached file, found at the bottom of this post.
When the macro completes, you’ll see in the Visual Studio IDE (the main VS shell) in the Output Window the full list of keyboard shortcuts.
Technorati Tags: VS2005Tip,VS2008Tip
Comments
Anonymous
December 02, 2008
PingBack from http://blog.a-foton.ru/index.php/2008/12/03/did-you-know%e2%80%a6-there%e2%80%99s-a-macro-for-listing-out-all-the-keyboard-shortcuts-in-visual-studio-370/Anonymous
December 02, 2008
PingBack from http://blog.a-foton.ru/index.php/2008/12/03/did-you-know%e2%80%a6-there%e2%80%99s-a-macro-for-listing-out-all-the-keyboard-shortcuts-in-visual-studio-370/Anonymous
December 03, 2008
Newbie question regarding macros: Are we limited to VB or is C# an option. THe Macros IDE's Project/Add Module... dialog doesn't seem to give us choice of language. TIA for your lights.Anonymous
December 03, 2008
Hey, I remember Lance...that takes me back. :)Anonymous
December 03, 2008
Hi Sara, you forgot to talk about the "Visual C# 2008 Keybinding Reference Poster" Here is the direct link: http://www.microsoft.com/downloads/details.aspx?FamilyID=e5f902a8-5bb5-4cc6-907e-472809749973&displaylang=en Regards,Anonymous
December 03, 2008
Now a shortcut to display all shortcuts available in the current context would be neat!Anonymous
December 03, 2008
Now you tell us!!! :o) You've probably has a big printout of this up on your wall... and probably been looking through them for tip ideas! Thanks Heaps!!!Anonymous
December 04, 2008
I do not see Tools | Macros option in VS 2008. I am looking around to try to find it. Do you have to have a project selected or something? Because I don't see that the tools menu has a Macros option at least in VS 2008Anonymous
December 09, 2008
sorry for the macro getting cut off. I've added it as an attachment, found right below the blog post.Anonymous
April 09, 2009
本篇包括tip361-tip370http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-36.html#361、按...