Visual Studio rename project and namespace code example
Example: visual studio rename namespace
How-to
Place your cursor in the namespace name.
Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
Select Change namespace to <folder name>.
See also