Home Explore Blog CI



zed

docs/src/languages/csharp.md
25f65ec2e66e862b7125b7ef2ab4e50bdd028a4cc57271070000000300000271
# C#

Note language name is "CSharp" for settings not "C#'

C# support is available through the [C# extension](https://github.com/zed-extensions/csharp).

- Tree-sitter: [tree-sitter/tree-sitter-c-sharp](https://github.com/tree-sitter/tree-sitter-c-sharp)
- Language Server: [OmniSharp/omnisharp-roslyn](https://github.com/OmniSharp/omnisharp-roslyn)

## Configuration

The `OmniSharp` binary can be configured in a Zed settings file with:

```json
{
  "lsp": {
    "omnisharp": {
      "binary": {
        "path": "/path/to/OmniSharp",
        "arguments": ["optional", "additional", "args", "-lsp"]
      }
    }
  }
}
```

Chunks
19d0126b (1st chunk of `docs/src/languages/csharp.md`)
Title: C# Language Support in Zed
Summary
Zed supports C# via the C# extension, utilizing tree-sitter for parsing and OmniSharp as the language server. The OmniSharp binary can be configured within Zed's settings to specify its path and arguments.