Navigate to Class Based on Interface Naming Convention
Hello everyone,
I'm trying to find a way to navigate to a class based on the naming of an interface. Here's a simplified example of what I'm working with:
csharp
Copy code
IMyClass mc = SomeFunction();
When I CTRL+Click on IMyClass
, I want to navigate directly to a class named MyClass
(i.e., without the "I" prefix) instead of navigating to the IMyClass
interface.
A key point: MyClass
does not implement or inherit from IMyClass
. The two are unrelated except for this naming convention.
Is there any way to achieve this behavior, either out of the box or through an existing plugin?
Thanks in advance!
Please sign in to leave a comment.
Well I am going to respond to myself. I found a clunky way of doing this using Macros.
You need the following Macro:
IMyClass
).IMyClass
) into the search field.IMyClass
), likely to prepare for modifying it.I
from the interface name, resulting inMyClass
.