/RoslynPad

A cross-platform C# editor based on Roslyn and AvalonEdit

Primary LanguageC#Apache License 2.0Apache-2.0

RoslynPad

RoslynPad

A cross-platform C# editor based on Roslyn and AvalonEdit

Downloads

Also available to download in the Microsoft Store:

Get it on Windows 10

Packages

RoslynPad is also available as NuGet packages which allow you to use Roslyn services and the editor in your own apps.

Package Name Description
NuGet RoslynPad.Roslyn Exposes many Roslyn editor services that are currently internal
NuGet RoslynPad.Roslyn.Windows Provides platform-specific (WPF) implementations for UI elements required by the RoslynPad.Roslyn package
NuGet RoslynPad.Roslyn.Avalonia Provides platform-specific (Avalonia) implementations for UI elements required by the RoslynPad.Roslyn package
NuGet RoslynPad.Editor.Windows Provides a Roslyn-based code editor using AvaloniaEdit (WPF platform) with completion, diagnostics, and quick actions
NuGet RoslynPad.Editor.Avalonia Provides a Roslyn-based code editor using AvalonEdit (Avalonia platform) with completion, diagnostics, and quick actions

RoslynPad.Roslyn* package versions will correspond to Roslyn's.

Code samples

Building

Open src\RoslynPad.sln in Visual Studio 2017.

Try out RoslynPad for Mac/Linux (alpha)

  • Install .NET Core SDK 2.1

  • Review the Avalonia release notes

  • Run these commands:

    git clone https://github.com/aelij/roslynpad
    cd roslynpad/src/RoslynPad.NetCore
    dotnet restore
    dotnet run
    

Features

Completion

Completion

Signature Help

Signature Help

Diagnostics

Diagnostics

Code Fixes

Code Fixes