Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Navigate to Handler

Navigate to Handler

digitaldias

|
53 installs
| (1) | Free
Adds a command that allows you to navigate to public or protected methods across the entire solution that consume the type under the cursor as a parameter.

I started writing this extension because I was getting annoyed with having no shortcut to navigate from a _mediator.Send(command) line to it's corresponding Handle() method.

I soon realized that this is useful for more cases too. Every time I have the cursor under a variable, or a type declaration, I can now use the command Navigate to Handler to see every public method that takes that type as a parameter.

Tip
It is recommended that you create a shortcut for convenience. I'm using CTRL+ALT+H

If only one single method exists that takes the type as a parameter, the command navigates directly to it by opening that file and positioning the cursor on the relevant method.

If more than one match is found, the results are displayed in the Output Window in visual studio, under Public Handler Results

Updates

v0.9

  • Include results from protected methods.

v0.8

  • Improves detection of public methods
  • Improves writing to output windows

If you enjoy this extension, and want to support me, feel free to buy me a coffee over at
https://ko-fi.com/digitaldias

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft