Navigation and Search in Visual Basic .NET
All ReSharper's navigation and search features available in C# are also supported in Visual Basic .NET. 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 .NET.
File structure
File Structure helps overview the structure of the current file that is open and active in the editor.
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. Double-click a node in the Hierarchy window to navigate to the declaration of the selected type. Moreover, use context menu to apply search features and refactoring right from the current window.
Navigation by name
Various "Go To ..." features such as: Search Everywhere/Go to Type, Go to Symbol, Go to File Member, 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. 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.
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. 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.
Find usages and dependencies of projects and assemblies
Find dependent code helps find usages of a specific project or assembly reference. 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: As a result, multiple different usages are found: