Effortlessly maintain file-scoped C# namespaces in VS Code: this extension analyzes your project and solution layout (including .csproj and Directory.Build.props) to insert or update namespaces so they always reflect your folder hierarchy and configured RootNamespace.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Effortlessly maintain file-scoped C# namespaces in VS Code: this extension analyzes your project and solution layout (including .csproj and Directory.Build.props) to insert or update namespaces so they always reflect your folder hierarchy and configured RootNamespace.
✨ Features
📂 Detects the closest .csproj file (or solution root) relative to the current C# file.
🔍 Supports reading <RootNamespace> from:
the project’s .csproj
any Directory.Build.props up to the solution level
📁 Builds namespaces by appending folder names under the project root.