We have a project divided into several folders. whenever we add a new file to one of the subfolders, VS 2005 appends the classes' namespace with .[foldername]
It's pretty annoying. Any way to turn the auto-naming off?
Printable View
We have a project divided into several folders. whenever we add a new file to one of the subfolders, VS 2005 appends the classes' namespace with .[foldername]
It's pretty annoying. Any way to turn the auto-naming off?
You want to turn it off just because it's annoying you:confused:?
If you want all your code with the same namespace put all your files in the same folder
Uhm. Yes. It's annoying me, and I'd like to turn it off.
Right now we are creating them in the current directory and then shoveling them into sub-folders so that our solution stays manageable.
I suppose we could avoid some of this by putting more than one class in a file, but for now, that's how we are doing this.
Strangely, you are not the first person to react like that. I'm still kinda confused by people's reactions.
Why does everyone balk at questions like this? What is so unreasonable about expecting modern IDE's to be customizable?
Isn't that what they are for? to make our lives better and so that we can be more productive?
C# extends Java and I believe you don't know much about Java
The concept of namespaces is taken from Java Packages,
In java if the class package (namespace) declaration isn't set correctly to the folder it belongs to just won't compile
Ah.
Well, I don't like it, but perhaps now I understand where this nuance came from.
My background is primarily VB6.0 and I'm learning to accept some of the ins and outs of C# and it's evolution from C-based languages. I didn't mean to sound like a raving jerkoff, but when one doesn't have experience in the predecessors of a language like this, one can become frustated. (Don't get me started on case-sensitivity :) )
Thanks for the reply.