Skip to content

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

License

Notifications You must be signed in to change notification settings

ssaattww/RoslynPad

 
 

Repository files navigation

RoslynPad

RoslynPad

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

Installing

You must also install a supported .NET SDK to allow RoslynPad to compile programs.

Source
GitHub Downloads
Microsoft Store Microsoft Store badge logo
winget winget install --id RoslynPad.RoslynPad

Running on macOS

  1. Copy the app to the Applications directory.

  2. On the first run, right click the app on Finder and select Open.

    You will be prompted that the app is not signed by a known developer - click Open.

    For more information see Open a Mac app from an unidentified developer.

Packages

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

Code samples

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

Package versions match Roslyn's.

Building

To build the source code, use one of the following:

  • dotnet build
  • Visual Studio 2022
  • Visual Studio Code with the C# Dev Kit extension

Solutions:

  • src/RoslynPad.sln - contains all projects (recommended only on Windows)
  • src/RoslynPad.Avalonia.sln - contains only cross-platform projects

Features

Completion

Completion

Signature Help

Signature Help

Diagnostics

Diagnostics

Code Fixes

Code Fixes

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.1%
  • PowerShell 0.9%