Ashkan S
Ashkan S

Reputation: 11481

Updating the namespace automatically in Visual Studio 2015/ C#

I am doing some clean up/ restructuring on my code (C#) were I move my classes in the tree structure. I am looking for a way to update all namespaces to the default ones (like projectname.rootFolder.ChildFolder).

I know that there are some ways to do it one by one like in this old post but I am looking for a clean simple update way. I wish there was something like "right clicking on the folder and clicking on update namespace!" but there is not.

Anyone knows any add-on/ easy way to do it?

Upvotes: 0

Views: 1087

Answers (1)

Murtoza
Murtoza

Reputation: 171

Resharper is a tool to work on legacy code. Try to use this tool. Right click on the folder> go to refactor and then select adjust Namespaces

enter image description here

Upvotes: 1

Related Questions