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

  • SEARCH
  • Home
  • 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 6826153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:06:49+00:00 2026-05-26T22:06:49+00:00

After writing a whole bunch of code – i am finally waking up to

  • 0

After writing a whole bunch of code – i am finally waking up to adding CA and StyleCop to my solution.

By default all files (a lot of them) in my solution have using statements at the top of the file before the namespace.

I have resharper 6.0 and powertools in visual studio.
Is there a way using these or any other tool that will go through all my CS file in the solution and put the using statements inside the namespace for each file.

  • 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-26T22:06:49+00:00Added an answer on May 26, 2026 at 10:06 pm

    With Resharper it can be done in two steps.

    1. Set the checkbox “Add ‘using’ directive to the deepest scope” in Code Editing → C# → Code Style → Reference qualification.
      Options v9

    2. In the context menu of the solution choose “Cleanup Code…”.
      SLN context menu

    You might want to create a custom cleanup pofile that suits your needs before performing the cleanup.

    In ReSharper before v9 the setting is located somewhere else:
    Options v8

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

Sidebar

Related Questions

After writing a whole lot of much more complicated code that works beautifully, THIS
Suppose, I have a connected socket after writing this code.. if ((sd = accept(socket_d,
When writing server-side code you need to explicitly stop execution after sending a Location:
Iv'e been writing a webapp for iPad and other tablets and after a lot
I'm writing a bunch of data to a socket, however, after what seems like
I am using JQuery to execute an operation within a web service. After writing
I am writing a blackberry application - after the application has started I need
I'm writing a tool which will push changes to database after commit to svn.
I'm writing an application that displays Google Map right after the login screen. The
I'm writing a tic tac toe program that plays throuh the terminal/console After Player

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.