C# Object Explorer for VS Code
Browse C# projects in a solution, including types and members from referenced assemblies and NuGet packages.
Requirements
- VS Code 1.85 or newer.
- A .NET SDK on the
PATH and the .NET 8 runtime. The SDK must support the projects being opened; .slnx files require an SDK that supports that format.
- Restored project dependencies (
dotnet restore on the solution).
- A trusted workspace. Loading projects uses MSBuild and can execute project-defined tasks.
Install
Install the provided .vsix using Extensions: Install from VSIX... in VS Code. Alternatively, build it with npm install and npm run package, then install the generated .vsix.
Open the folder containing your solution, select C# Object Explorer in the activity bar, and run C# Object Explorer: Open Solution or Project. Select a .sln, .slnx, or .csproj file. Use the view title buttons to search, refresh, or clear a search.
Each project contains its own code and resolved references. Select a type or member to open its source or view its metadata signature. Search covers namespaces, types, and members from projects and references, with a limit of 200 results.
Development
With Node.js 22 or newer, run npm install, npm run build, and npm test. Open this folder in VS Code and press F5 to launch an extension development host. Open a solution folder in the new window.
The TypeScript extension lives in src, the Roslyn/MSBuild backend in server, and the .NET integration tests in tests.
Limitations
- Metadata views show signatures, not decompiled source.
- Only public and protected members are shown for references; project code includes private and internal members.
- Unloaded projects and unresolved references may be missing. See View > Output > C# Object Explorer for diagnostics. Multi-targeted projects are analyzed using the configuration selected by MSBuild.
- Selection is limited to open workspace folders. Refresh after changing source files or packages.
- This is not a complete implementation of Visual Studio's Object Browser.