21

I would prefer the following

 using Truncating.Long.Using.Namespace.Xxx;

Visual Studio 2015, does the following

using Xxx;

I figured out, that I can change the behavior for the code hint (IDE0001) by adjusting "Code Analysis" settings.

But I could not figure out how to STOP the behavior, for the Ctrl-. inserting a missing namespace.

Does anyone have some directions or feedback about this?

iwhp
  • 843
  • 6
  • 16

1 Answers1

4

I haven't found an option for this natively in Visual Studio, but the Resharper extension provides support for this. It's been an option since version 5, under Code Style, called "Prefer fully qualified using name at nested scope"

Community
  • 1
  • 1
Bobson
  • 13,498
  • 5
  • 55
  • 80