ReSharper 2024.1 Help

Navigation and search in Visual Basic

All ReSharper's navigation and search features available in C# are also supported in Visual Basic. You can find the detailed information on these features in the corresponding topics of the Navigate and search section.

In this topic, you can find some examples of using navigation and search features in Visual Basic.

File structure

File Structure window helps overview the structure of the current file that is open and active in the editor.

ReSharper: File Structure in VB.NET

Double-click a node in the File Structure window to navigate to the declaration of the selected member. Moreover, from the context menu you can apply navigation and search features, as well as refactorings.

Type hierarchy

Type hierarchy helps overview the inheritance hierarchy of a type.

ReSharper: Type Hierarchy in VB.NET

Double-click a node in the Hierarchy window to navigate to the declaration of the selected type. Moreover, use the context menu to apply search features and refactoring right from the current window.

Various "Go To ..." features such as: Search Everywhere/Go to Type, Go to Symbol, File Structure, and so on work for VB.NET as well.

Find usages

Find usages and Find Usages Advanced features help you locate all usages of namespaces, types, methods, and so on in your source code. Applying the Find Usages feature is the quickest way to find all code usages in the solution.

ReSharper: Find Usages in VB.NET

If you need more flexible search, use the Find Usages Advanced feature. It gives you an opportunity to find textual occurrences and extend the search scope, for example:

ReSharper: Find Usages Advanced in VB.NET

Highlight usages in file

The Highlight usages in file feature helps focus your attention at a particular member or local variable and its occurrences. Note that write accesses are highlighted in red, and read accesses are highlighted in blue.

ReSharper: Highlight Usages in VB.NET

Moreover, you can highlight usages of namespaces. Place the caret at Imports directive and invoke the feature, ReSharper highlights all symbols that depend on the namespace.

ReSharper: Highlighting namespace usages in VB.NET

Find usages and dependencies of projects and assemblies

Find dependent code helps find usages of a specific project or assembly reference.

ReSharper: 'Find Dependent Code' in VB.NET

Referenced Code helps find usages of any symbols external to a certain scope.

Search with pattern

Search with pattern enables you to define a code pattern and find pieces of code that match the pattern. For instance, if you want to find all usages of TryCast statement in your project, use the following search pattern:

ReSharper: 'Search with Pattern' in VB.NET

As a result, multiple different usages are found:

ReSharper: 'Search with Pattern' in VB.NET
Last modified: 15 May 2024