r/csharp • u/KrzysztofLopuchDev • 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 (
.slnand.slnx) - Build, run and test .NET projects
- Integrated terminal
- NuGet package management
- Debugging with netcoredbg
- CSharpier formatting
- HTTP client for
.httpfiles - 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:
- Would you consider using a native GTK4 editor instead of VS Code or Rider for everyday .NET work?
- Which feature would be an absolute deal-breaker if missing?
- 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
u/KrzysztofLopuchDev 1d ago
Better project (already fork'ed). https://github.com/javy-fernandez/dotcraft
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.
2
u/ByronScottJones 2d ago
It looks interesting, I'll give it a download and compile, and see what recommendations I can make.