Auto using during implementation of interface

Is there a way to configure resharper to automatically add using statements when I use the "Implement interface" action from intellisense? I'd rather not use fully qualified names to the types in my parameters.

3 comments
Comment actions Permalink

Hi Michael,

Yes. Take a look at the Import Symbol Completion feature here: http://www.jetbrains.com/resharper/features/coding_assistance.html
I beleive it is the feature you're looking for.

Thanks!

0
Comment actions Permalink

Sorry to bring this back up, but this isn't quite exactly the same thing.

 

Basically when I click "Implement missing members" there are some methods that reference external types and the generated code fully qualifies the parameter type rather than adding a using statement. I was wondering if you could set resharper to generate a using rather than fully qualifying the type.

0
Comment actions Permalink

Hello Michael,

If you are using R# 10.0.2, please adjust needed behavior here ReSharper | Options | Code Editing | C# | Code Style | Reference qualification | "Prefer fully qualified references" checkbox

Thanks!    

0

Please sign in to leave a comment.