![RoslynPad](src/RoslynPad/Resources/RoslynPad.png)
A cross-platform C# editor based on Roslyn and AvalonEdit
![Downloads](https://camo.githubusercontent.com/f915a680345aa8e4d3225767e82f1c1c9ca606e92e1774d78f3baa999313427f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f61656c696a2f526f736c796e5061642f746f74616c2e7376673f7374796c653d666c61742d737175617265)
Also available to download in the Microsoft Store:
![Microsoft Store badge logo](https://camo.githubusercontent.com/2fe099312c3860d465f9de390c7a4164bb9799e0b489703d0bffbb32cdec5097/68747470733a2f2f6765742e6d6963726f736f66742e636f6d2f696d616765732f656e2d75732532306c696768742e737667)
RoslynPad is also available as NuGet packages which allow you to use Roslyn services and the editor in your own apps.
Package Name |
Description |
RoslynPad.Roslyn |
Exposes many Roslyn editor services that are currently internal |
RoslynPad.Roslyn.Windows |
Provides platform-specific (WPF) implementations for UI elements required by the RoslynPad.Roslyn package |
![NuGet](https://camo.githubusercontent.com/9b821b7238cb859f6d29b47908c957717223bcfd968382c7e7d3942e2d00a1d6/68747470733a2f2f696d672e736869656c64732e696f2f6e756765742f762f526f736c796e5061642e526f736c796e2e4176616c6f6e69612e7376673f7374796c653d666c61742d737175617265) RoslynPad.Roslyn.Avalonia |
Provides platform-specific (Avalonia) implementations for UI elements required by the RoslynPad.Roslyn package |
RoslynPad.Editor.Windows |
Provides a Roslyn-based code editor using AvaloniaEdit (WPF platform) with completion, diagnostics, and quick actions |
RoslynPad.Editor.Avalonia |
Provides a Roslyn-based code editor using AvalonEdit (Avalonia platform) with completion, diagnostics, and quick actions |
RoslynPad.Roslyn*
package versions must correspond to Roslyn's.
Code samples
Open src\RoslynPad.sln
in Visual Studio 2022.
Running the cross-platform .NET Core Avalonia version (on Mac or Linux)
- Install .NET Core SDK 7.0
- Download and unzip
RoslynPadAvalonia.zip
from the latest release
- Run
dotnet RoslynPad.dll
![Completion](docs/Completion.png)
![Signature Help](docs/SignatureHelp.png)
![Diagnostics](docs/Diagnostics.png)
![Code Fixes](docs/CodeFixes.png)