次の方法で共有


Testing a Command

Keyboard:  CTRL + ALT + A
Menu:  View -> Other Windows -> Command Window
Command:  View.CommandWindow
Versions:  2008,2010
Published:  8/6/2010
Code:  vstipTool0065

 

Throughout these tips I include the Command where appropriate.  But how do you test a command?  Let's take a look at a one quick way.

 

First figure out what command you want to test.  In our case we will test "View.ViewCode".  Then press CTRL + ALT + A to bring up the Command window:

image

 

Since I'm testing "ViewCode" I need to have a Design window open.  Now I start typing the command I want to test (case doesn't matter):

image

 

As you can see we have IntelliSense helping us with the command.  Now I just press ENTER to see the command in action:

image

 

And there you go!  You have tested a command.  Feel free to try various commands to see what they do.