Position of Auto Using Statements

When I use a type which does not have a using stetement at the head of the class R# prompts me to add the missing using statement

 
Typically all using statements appear before the Namespace declaration

eg

using System;
using System.Collections;
--> new ones added here automatically

Namespace MyApp
{

public class Test()
{
}

....

in V6 I now see a different behaviour , it places the new using within the namespace


public class Test()

{
}


Is this by design ?? or can it be configured to either [position . I refer the V5 positioning .

Mike





2 comments

Hi. R# has setting for that. Please check 'R#/Options/Languages/C#/Namespace imports/'Add using directive to the deepest scope'. It should be unchecked.
Btw, we didn't change the default in 6.0 so it wierd that your setting got changed.

0

Spot on , Thanks ,  though there must be a setting for it somewhere

Mike

0

Please sign in to leave a comment.