Is there a setting to automatically add the namespace of the folder when creating a new file?

JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai
edited April 2013 in Visual Studio

In Visual Studio, I am used to the IDE setting the namespace of a newly created file, to whichever folder path I have added it to e.g. If I right click on a folder named Services, the namespace of the file would be Project.Services.

In Xamarin Studio, it does not do this, and the namespace is always created for the Project name. Is there some sort of setting to change this behavior to get it to work like Visual Studio?



  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @jstedfast Awesome!!!

    Thanks for helping me out!

  • JeffreyStedfastJeffreyStedfast USXamarin Team Xamurai

    Glad to help!

  • BenBishopBenBishop USBeta ✭✭

    @John thanks for asking this question. I've been wondering about this too.

  • uma12uma12 USMember

    thanks @JeffreyStedfast !

  • RonnieKleinfeldRonnieKleinfeld USUniversity

    What if I want to move the file to another folder
    In Eclipse the namespace is renamed to the new folder hierarchy

Sign In or Register to comment.