Back to directory
zircote avatar
zircote / csharp-lsp

csharp-lsp

Claude Code plugin for C# development with OmniSharp LSP and dotnet format hooks

8

Stars

0

Forks

0

Watchers

MIT

License

csharp-lsp

Version License Claude Plugin Marketplace C#

A Claude Code plugin providing comprehensive C# development support through:

  • OmniSharp LSP integration for IDE-like features
  • 12 automated hooks for .NET builds, linting, formatting, and testing
  • .NET ecosystem integration (dotnet CLI, xUnit, NuGet)

Quick Setup

# Run the setup command (after installing the plugin)
/setup

Or manually:

# macOS (Homebrew)
brew install omnisharp
# or
dotnet tool install --global csharp-ls

Features

LSP Integration

The plugin configures OmniSharp for Claude Code via .lsp.json:

{
    "csharp": {
        "command": "omnisharp",
        "args": ["-lsp"],
        "extensionToLanguage": { ".cs": "csharp" },
        "transport": "stdio"
    }
}

Capabilities:

  • Go to definition / references / implementation
  • Hover documentation
  • NuGet package completion
  • .NET solution navigation
  • Real-time diagnostics

Automated Hooks

Hook Trigger Description
csharp-format-on-edit **/*.cs Auto-format with dotnet format
csharp-build-check **/*.cs Build with dotnet build
csharp-todo-fixme **/*.cs Surface TODO/FIXME comments
csharp-null-check **/*.cs Detect null-forgiving operators

Required Tools

Tool Installation Purpose
omnisharp brew install omnisharp LSP server
dotnet dotnet.microsoft.com .NET SDK

Project Structure

csharp-lsp/
├── .claude-plugin/
│   └── plugin.json           # Plugin metadata
├── .lsp.json                  # OmniSharp configuration
├── commands/
│   └── setup.md              # /setup command
├── hooks/
│   └── scripts/
│       └── csharp-hooks.sh
├── tests/
│   └── SampleTest.cs         # Test file
├── CLAUDE.md                  # Project instructions
└── README.md                  # This file

License

MIT

Releases

fix(hooks): add 10s timeout and fileExtensions conditions

Jan 2, 2026

v1.0.0 - Initial Release

Download .zip

C# LSP Plugin v1.0.0 Initial release of the C# LSP plugin for Claude Code. Features

OmniSharp LSP integration dotnet format hooks Automatic diagnostics on file save

Installation claude /plugin add z...