• RSS Feed

Goto

Use Goto (Alt+G) to jump to the declaration or implementation of the current symbol. If only one possible destination exists, Goto jumps directly to the location. If more than one destination exists, a menu of locations appears.

Access

The most efficient access to Goto is via the default shortcut for VAssistX.GotoImplementation (Alt+G). Menus open under the text caret.

Implementations appear in menus with {...}, whereas declarations do not.

You can also access Goto via a button in the VA Navigation Bar.

 Menus open under the Goto button.

Select from the menu using an accelerator, Enter, or Tab.

Visual Assist versus IDE

Newer Microsoft IDEs include commands similar to the Goto of Visual Assist: Goto Definition and Goto Declaration.

Although the built-in commands improve with each version of the IDE, the Visual Assist version of Goto generally provides better accuracy and functionality. Specifically, the Visual Assist version:

  • works on files outside a project
  • works on symbols within comments
  • goes to implementors of interfaces, in addition to interface definitions
  • provides a consistent interface across multiple IDEs

As an example of a difference, the IDE version of Goto Definition for the method in the images above produces an excess of locations, whereas Visual Assist produces only the relevant four.

Return to Previous Location

After Goto, use Navigate Back (Alt+Left-Arrow) to return to your original location—the location where you issued the Goto. Returning is particularly useful when a menu contains several locations you need to investigate.

Although you can use the IDE version of Navigate Back, the Visual Assist version of Navigate Back (Alt+Left-Arrow) records fewer waypoints during editing and scrolling, so you can generally return to your original location with fewer steps.

Sources of Implementations

Goto searches for implementations in the directory containing the declaration of a symbol, as well as respective ../src and ../source directories.

Goto also searches for C/C++ objects implemented outside your projects using project properties, settings in the IDE, and settings in the options dialog of Visual Assist. Seek technical support or see C/C++ Directories if Goto doesn't not find the implementations you expect.

Goto from Code-Behind Files

Goto works from both design and code-behind files in frameworks that employ a code-behind model, e.g. WPF.

Goto from Comments

Goto is permitted from symbols within comments. Because scope is unknown in comments, Goto presents a menu of identically named symbols in your solution.

VA Navigation Bar

The VA Navigation Bar must be visible to see the Goto button.