简体   繁体   中英

Can I set up ReSharper to rename unimported classes usages to their full names instead of importing their namespaces?

When I try to use a class whose home namespace is not imported with a using directive, a pop-up appears allowing me to choose the class (by its full name) and adds a using directive to import it.

In a project of mine I make heavy use of same-named classes from different namespaces and would prefer to specify a full name on every use.

Can I set up ReSharper to replace a class "first name" with its full name in-place instead of importing its home namespace?

Send this question to the ReSharper support team. They'll be happy to help you out. BTW, this feature is already in Visual Studio, try pressing Ctrl + . (period) and select the full name.

I don't have this problem, and it works fine for me using Visual Studio and ReSharper side by side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM