Skip to main content

C# LSP Server

handbook-csharp-lsp

Language Server Protocol support for C# files using csharp-ls, providing code intelligence features like go-to-definition, hover documentation, and diagnostics.

Configuration​

{
"csharp": {
"command": "csharp-ls",
"args": [],
"extensionToLanguage": {
".cs": "csharp"
},
"transport": "stdio",
"initializationOptions": {},
"settings": {},
"maxRestarts": 3
}
}

Coverage​

  • Go-to-definition and find references for C# symbols
  • Hover documentation for types, methods, and properties
  • Diagnostics (errors and warnings) inline in the editor
  • Code completion for C# files (.cs)

Installation​

claude plugin install handbook-csharp-lsp@cc-handbook

Requires csharp-ls to be installed on your system:

dotnet tool install --global csharp-ls