Setup LSP

Installs and verifies the C# Language Server for code intelligence.

Invocation

/setup-lsp

What It Does

  1. Checks if csharp-ls is already installed
  2. Installs via dotnet tool install --global csharp-ls if needed
  3. Verifies the installation
  4. 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:

  1. Verify .NET SDK is installed: dotnet --version
  2. Verify the tool is in PATH: dotnet tool list -g
  3. Reinstall: dotnet tool uninstall --global csharp-ls && dotnet tool install --global csharp-ls

This site uses Just the Docs, a documentation theme for Jekyll.