| Xona Games is a team of two indie game studio working on Duality ZF, a 4-player dual play (8 fighter) Xbox 360 shoot'em up. |
|
Tuesday, August 02, 2005 By: Jason Doucette Printer Friendly Version This article describes how to create and run a macro, from within Visual Studio .NET, which produces an HTML table showing all of your current keyboard mappings (shortcuts). It is useful for finding key bindings, and provide a much easier way to merely browse through them, rather than using Visual Studio's ridiculously small browse window (which shows 4 and a half listings at once).
How to Create the Macro To create this macro, go into Tools menu -> Macros -> Macros IDE...
Within Project Explorer, right-click MyMacros, select Add, select Add Module...
Add a new module named 'KeyboardShortcuts'.
Copy the entire macro source (listed at the bottom of this article), and paste it into the new module. You will notice the 'Utilities' line within the source code is underlined in blue, indicating an error.
To rectify this, go into the 'Samples' directory inside Project Explorer, and find the 'Utilities' module. You need to copy this entire 'Utilities' module from the 'Samples' directory into the 'MyMacros' directory, using standard copy and paste operations. If you do not make a copy of the 'Utilities' module in the 'MyMacros' directory, the code will not be able to reference it.
Build the macro by clicking Debug menu -> Build. If there are no errors - which is indicated by a lack of any response whatsoever from the IDE <sigh> - then everything is ready. (If there is an error, the Macro IDE will highlight it, and show the error in the Task List window.) You can now close the Macro IDE window, as the macro will be run from the main Visual Studio window.
How to Run the Macro Go to Tools menu -> Macros -> Macro Explorer.
Under 'MyMacros', under the 'KeyboardShortcuts' directory, a new macro called 'ListKeyboardShortcuts' will be available.
To run the macro, double click it. If you wish to see the macro's progress as it runs, make sure the Output window is open before you start it. The macro will take approximately 30 seconds to run. Once it is complete, copy the entire text of the Output window, and paste it into an HTML file. Sample macro output is shown within the pages linked below.
Macro Source
Credit The macro originated from a 'Lance' on the Visual Studio Core Team. William Garrison found this macro on the microsoft.public.vsnet.ide newsgroup, and modified it to improve its output. I found his modifications on William's website and further modified it to clear the confusion of blank cells.
Sample Macro Output I have run the macro from within Visual C++ .NET 2003 (v7.1), with the Keyboard Mapping Scheme set to emulate all of the possible pre-set settings. You can set it yourself by going to: Tools menu -> Options -> Environment -> Keyboard -> Keyboard Mapping Scheme. I should note that while these Keyboard Mapping Scheme settings are supposed to exactly replicate the keyboard mappings of different versions of Visual Studio, it is known to be somewhat inaccurate. I recall only one such incident, and there may be more: One of the mapping schemes did not provide a particular shortcut that an author was accustomed to. Searching the above macro's output proved that the shortcut was not only missing, but did not exist at all. Here are the five Keyboard Mapping Schemes that come with Visual C++ .NET 2003 (v7.1):
About the Author: I am Jason Doucette of Xona Games, a team-of-two indie game development studio working on Xbox 360 games . I am currently working on Duality ZF, a groundbreaking arcade-style shoot'em up*. It features 4x local multiplayer, dual play (control two fighters at once), six game modes (home, survival, arcade, score rush, bullet hell, boss rush) including full 8-stage campaign modes and single-stage challenge modes, four control modes (solo play, dual play, multidirectional, g-mode) so you can play the entire game as a dual-stick multidirectional shooter if you wish, individual and team scores, 96 game styles, 96 online scoreboards, a beautiful electronic Imphenzia soundtrack, and a massively upgradable 32-stage duality spread/laser weapon system. 4x dual play allows up to eight fighters at once. Many of these features are never before seen shoot'em up firsts. Check out our Duality ZF trailer and help spread the word with our official dualityzf.com website. Coming soon to Xbox LIVE Indie Games. *Also known as a shmup or 2D shooter.
|
|
Xona Games™ (formerly Saw Tooth Distortion™), Xona.com™ (formerly Xonatech™), Jason Doucette, Matthew Doucette. 3,935,971 page views (since 2004-Jul-27) |