Realign namespace definitions with file structure

Like all developers with OCD I try to organise my namespaces within our project so that they match where the file they are contained within sits of disk.

However after a pretty massive refactoring session within VS.NET I've moved files within projects and created new subfolders a plenty, leaving the refactoring of the namespaces to later believing that there must be a refactoring tool that will accomplish this for me once things have settled down. However I'm now not able to find such a tool!

Does anyone know of anyway to accomplish this automatically (ie. without me painstakingly going through 100s of files or even writing my own tool?).

Answers


There are a couple of options:

  1. Use the Class View window to rename the namespaces.
  2. User "ReSharper" from jetbrains to do the refactoring.

Need Your Help

IN clause in Lambda expression against a List as reference

c# list lambda contains

How to use IN clause having a list as reference?

Jquery fadeIn in callback for fadeOut not lasting

javascript jquery setinterval fadein fadeout

Hope someone can shed some light on this issue for me.... I'm using a setInterval to alternate displaying headlines on a webpage. it fades out the previous one, then in the callback function fades ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.