C# LSP in Claude Code
Enable support of LSP in Claude Code
Edit settings.json file and add:
{
"env": {
"ENABLE_LSP_TOOL": "1"
}
}
- Windows: Edit %userprofile%/.claude/settings.json
- WSL/Linux: Edit ~/.claude/settings.json
Install C# LSP server
dotnet tool install --global csharp-ls
Install plugin
claude plugin marketplace update claude-plugins-official
claude plugin install csharp
Restart Claude Code and test
claude
try with a prompt like:
Find all references of the function [FunctionName] using LSP
The log must display something like:
LSP(operation: "documentSymbol", file: ...)