Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4530826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:50:35+00:00 2026-05-21T13:50:35+00:00

I installed StyleCop and the associated plugin for ReSharper 5. After getting annoyed with

  • 0

I installed StyleCop and the associated plugin for ReSharper 5. After getting annoyed with it I removed both the plugin and StyleCop, but ReSharper is still using some of the StyleCop behaviour – most notably moving using statements to within the namespace declaration, rather than keeping them outside the declaration.

For instance say you have the following source:

using System;
using System.Web;

namespace Foo.Bar
{
    ////
}

And the file sits within The Foo/Bar/Widget directory, using ReSharper’s fix namespace tool I would expect the file to stay the same, but the namespace to have changed to Foo.Bar.Widgets (this is the behaviour it exhibited before StyleCop came along).

Now however it rearranges the file:

namespace Foo.Bar.Widget
{
    using System;
    using System.Web;

    ////
}

Now putting aside people’s personal preferences about which one is better, I don’t like it, and it is inconsistent with our existing code. Having to manually move using statements after renaming the namespace takes long than renaming the namespace manually.

Does anyone know how to correct this (I’m assuming there is a file or something still lingering around from the install, or a config that hasn’t been reverted).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T13:50:36+00:00Added an answer on May 21, 2026 at 1:50 pm

    You can change it here:

    ReSharper -> Options -> Languages -> C# -> Namespace Imports -> Add using directive to the deepest scope

    UPDATE – Resharper 9 This option is now moved to:

    ReSharper -> Options -> Code Editing -> C# -> Code Style -> Reference qualification

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to add a StyleCop SuppressMessageAttribute to some code but I don't
I am using StyleCop 4.4.0 RTW. I have installed it, copied the contents to
I installed both the Delphi 2009 trial and actual release via the web installer
I installed subclipse in eclipse, but I get an error message Expected format '3'
I installed the ReSharper evaluation version and uninstalled it. Afterwards Visual Studio's Intellisense stopped
I have installed StyleCop CheckIn policy (from here ) and it works great. However
Just found StyleCop, looks like something worth using for my projects. Then I found
So here's the problem. I'm writing some StyleCop plug-in assemblies for use at the
Installed Mono 2.4 on Ubuntu using the instructions here: http://www.nabble.com/forum/PrintPost.jtp?post=22841086 When I run xsp
After installed m2eclipse, I received a message saying that Eclipse needs to run in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.