Is there a way to override namespace popup ?

When you type a class name in a referenced assembly that hasn't been used yet (by USING directive), Resharper pops up a tooltip containing the full namespace owning the class, clicking on the tooltip results in Resharper inserting the USING .... at the top and the namespace in front of the class name.

Is there a way to hook into this so I can customize what to insert ?

2 comments

What are you trying to insert? Add a different action that popups like the namespace popup, or override the action when you click the "Import Namespace" popup, or add a reference other than file or nuget reference and import a type? Or work with a different language?

0

I would like to override, instead of having Resharper insert "using xzy.abc;" I want to replace it with an alias so it would be something like "using MyAlias=xyz.abc;", so basically I want to intercept where the code inserts the "using" text and replace it with my own.

0

Please sign in to leave a comment.