Tired of updating namespaces? With VS2019 you won't.

gopkumr

gopkumr

Posted on October 11, 2019

Tired of updating namespaces? With VS2019 you won't.

Most of us programmers would have moved code files around to different folders at a different stages of the application development, this might be due to refactoring or redesigning or re-organizing. While moving around the code files, most .Net developers would have spent enough time changing the namespaces to match the folder structure (as better practice).

With Visual Studio 2019, this mundane task of changing the namespaces while moving folder is now automated, which means, visual studio updates the namespace to match the folder structure by itself.
Even if for some reason, you move the folder using the file explorer rather than the visual studio, in such case, you can go into the code file and you get an option to update the namespace to match the folder structure or change it any other existing namespace from your project.

Namespace change option

Cool isn't it.

💖 💪 🙅 🚩
gopkumr
gopkumr

Posted on October 11, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Setting up Windows for development
windowsterminal Setting up Windows for development

July 6, 2020

.Net Core 3 - Part 1 - Swagger
netcore .Net Core 3 - Part 1 - Swagger

October 15, 2019

Como monto meu ambiente Windows do Zero
windows Como monto meu ambiente Windows do Zero

September 24, 2019