Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn Off the Folder/Namespace Convention

I see people talking about the annoyance of Visual Studio automatically creating a namespace to correspond with project folders. Is there a way to turn this off in VS 2010, without resorting to modifying class templates?

like image 754
Brent Arias Avatar asked Jun 05 '11 23:06

Brent Arias


2 Answers

If you use Resharper, there is an attribute on the folder 'Namespace Provider'.

enter image description here

Even if you set it to false, Visual Studio will still add folder name as a namespace. However, Resharper fixes it with one click on the namespace.

like image 63
Alex Aza Avatar answered Sep 17 '22 16:09

Alex Aza


Use Resharper. Turn off the "Namespace Provider" option and you should be good to go without modifying class templates.

like image 31
IAmTimCorey Avatar answered Sep 21 '22 16:09

IAmTimCorey