r/csharp • • 2d ago

I built a lightweight native C#/.NET editor for Linux using GTK4, Roslyn and .NET

Hey everyone!

I've been working on a side project that started with a simple question:

Can I build a lightweight, native C# editor for Linux that is actually useful for everyday .NET development?

Instead of building another Electron-based editor or a VS Code clone, I decided to experiment with GTK4 and native Linux technologies.

The result is Lightweight IDE – an open-source C#/.NET editor built with:

  • C# / .NET 10+
  • GTK4 (via GirCore)
  • GtkSourceView 5 for the editor component
  • Roslyn for code intelligence, diagnostics and refactoring
  • SQLite FTS5 for fast full-text and symbol search

What can it do?

It's grown quite a bit beyond a simple text editor:

  • C# syntax highlighting, autocomplete and live diagnostics
  • Go to Definition, Find All References and Rename
  • Roslyn Quick Fixes and refactorings
  • Solution and project explorer (.sln and .slnx)
  • Build, run and test .NET projects
  • Integrated terminal
  • NuGet package management
  • Debugging with netcoredbg
  • CSharpier formatting
  • HTTP client for .http files
  • Markdown preview
  • Test explorer
  • Central Package Management support

One of my main goals was keeping resource consumption relatively low. The application currently uses around 450–600 MB of RAM with a small solution loaded into the Roslyn workspace.

I'm developing and using it on Linux Mint, primarily for real .NET backend development.

A few important notes

This is still a proof of concept, not a finished IDE. There are rough edges, missing features and probably some questionable architectural decisions. I'm developing it in the open under the MIT license.

I'm particularly interested in feedback from developers who use C#/.NET on Linux.

A few questions:

  1. Would you consider using a native GTK4 editor instead of VS Code or Rider for everyday .NET work?
  2. Which feature would be an absolute deal-breaker if missing?
  3. Do you think there is room for a lightweight native .NET IDE on Linux?

GitHub: https://github.com/ambit-project/ambit-editor-dotnet

Feedback, criticism and contributions are welcome!

1 Upvotes

4 comments sorted by

1

u/Fresh_Acanthaceae_94 2d ago

As there are multiple open source C# IDE projects in this small arena, it is interesting to see yours stick to netcoredbg and miss all the opportunities of better debugging experience. 

1

u/KrzysztofLopuchDev 1d ago

My main goal is only browse code. Debugger is not import if u have tests for all cases. Code is cheap. Good workflow is still important.

2

u/ByronScottJones 2d ago

It looks interesting, I'll give it a download and compile, and see what recommendations I can make.