• 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, Goto opens a menu of locations.

Select from a menu using an accelerator, Enter, or Tab

Access

Use the default shortcut for VAssistX.GotoImplementation (Alt+G) for most efficient access to Goto.

When accessed via shortcut, menus open under the text caret.

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

You can also access Goto via a button in the VA Navigation Bar. When accessed via the Go button, menus appear under the button.

The VA Navigation Bar must be enabled in the options dialog of Visual Assist to see the Go button.

Visual Assist versus IDE

Most Microsoft IDEs include commands—Goto Definition and Goto Declaration—that are similar to the Goto command of Visual Assist.

Although the built-in commands are sufficient for some projects, 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

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 does 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.