Curtis White
Curtis White

Reputation: 6353

Prevent visual studio from appending folder name to new classes?

How can I prevent Visual Studio from naming the classes for new pages that are in folders from being named with the folder name? Does this method not set "right" with anyone else?

Upvotes: 2

Views: 130

Answers (1)

Jay Riggs
Jay Riggs

Reputation: 53593

Naming classes or assigning classes to namespaces?

Visual Studio is assuming your project has a namespace hierarchy that mimics the folder structure in your project. I'm not sure if there is a way to override this behavior; when it bothers me I just create new classes on the root folder of my project and then move them to the folder I want.

Upvotes: 1

Related Questions