Setup LSP
Installs and verifies the C# Language Server for code intelligence.
Invocation
/setup-lsp
What It Does
- Checks if
csharp-lsis already installed - Installs via
dotnet tool install --global csharp-lsif needed - Verifies the installation
- Confirms the LSP configuration
What You Get
Once installed, Claude Code gains C# code intelligence:
- Go-to-definition — jump to type/method definitions
- Find-references — locate all usages of a symbol
- Diagnostics — real-time compiler errors and warnings
- Hover — type information and documentation on hover
Troubleshooting
If csharp-ls fails to start:
- Verify .NET SDK is installed:
dotnet --version - Verify the tool is in PATH:
dotnet tool list -g - Reinstall:
dotnet tool uninstall --global csharp-ls && dotnet tool install --global csharp-ls