次の方法で共有


Find Symbol Results Shortcuts

Keyboard:  F12 (go to definition); CTRL + F12 (go to declaration); SHIFT + F12 (go to reference)
Command:  Edit.GoToDefinition; Edit.GoToDeclaration; Edit.FindAllReferences;View.BrowseDefinition;Edit.Copy;Edit.ClearAll
Versions:  2008,2010
Published:  8/25/2010
Code:  vstipFind0012

 

For any symbol, you can quickly leverage a series of commands to help you.  The nice thing about these commands is many of them work, both, in the Find Symbol Results window and on their own in your code.

 

Go To Definition (F12)

Takes you to the definition of the symbol in your code if one is available.

image

image

 

 

 

Go To Declaration (CTRL + F12)

NOTE:  For C++ Only

Takes you to the declaration of the symbol in your code, if one is available.

 

 

 

Go To Reference (SHIFT + F12)

For any symbol:

image

image

 

This will find all references to that symbol:

image

 

 

If you are using the Find Symbol Results window then you can make this much easier by simply expanding a node in the window.  It automatically shows all references:

image

 

If there aren't any references it will tell you that also:

image

 

 

 

Browse Definition

For any symbol in your results, simply RIGHT-CLICK and choose "Browse Definition":

image

 

Will take you to the primary node (typically top level) for the symbol in the Object Browser which can be particularly useful for deeper examination:

image

 

 

 

Copy (CTRL + C)

Allows you to copy the fully qualified name for the selected symbol to the clipboard. You can then paste the code as text into the Code Editor:

image

 

 

 

Clear All

Clears the Find Symbol Results window:

image