![RoslynPad](src/RoslynPad/Resources/RoslynPad.png)
A cross-platform C# editor based on Roslyn and AvalonEdit
![Downloads](https://camo.githubusercontent.com/4d6614b461e2864ed694157ca3dbffafc3f75ce52b36c41535833d86274cfbaa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f61656c696a2f526f736c796e5061642f746f74616c2e7376673f7374796c653d666c61742d737175617265)
Also available to download in the Microsoft Store:
![Microsoft Store badge logo](https://camo.githubusercontent.com/7d7e6bde2b1fe0e0ac2e8111e8a602f284461ef33d2fb4ff560fd477f40d7d4e/68747470733a2f2f676574626164676563646e2e617a757265656467652e6e65742f696d616765732f456e676c6973685f532e706e67)
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/58adfdc714208e357814f64389835facdc205f04a164d45f2141b4a1ef4794c0/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 2019.
Running the cross-platform .NET Core Avalonia version (on Mac or Linux)
- Install .NET Core SDK 6.0
- Download and unzip
RoslynPadNetCore.zip
.
- Run
dotnet RoslynPad.dll
![Completion](docs/Completion.png)
![Signature Help](docs/SignatureHelp.png)
![Diagnostics](docs/Diagnostics.png)
![Code Fixes](docs/CodeFixes.png)