Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waf/replay-csharp

An editable C# REPL (Read Eval Print Loop) powered by Roslyn and .NET Core
https://github.com/waf/replay-csharp

csharp developer-tools repl roslyn wpf

Last synced: 22 days ago
JSON representation

An editable C# REPL (Read Eval Print Loop) powered by Roslyn and .NET Core

Awesome Lists containing this project

README

        

# Replay


A roslyn-powered editable [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) for C#.



## Features

- Correct mistakes on previous lines, even after you evaluate them.
- Re-evaluate a line multiple times by hitting ctrl + enter
- Intellisense and method signature documentation
- Syntax highlighting
- Reference assemblies by `#r path/to/my.dll`
- Reference nuget packages by `#nuget MyPackage`
- Pretty-print evaluation results
- Export your REPL session as C# or Markdown
- Detect incomplete expressions (e.g. `if (condition) {`), and insert a "soft newline" rather than evaluating the incomplete expression.

## Running

Replay requires Windows 10 (due to WPF).

- Download Replay from the [Releases page](https://github.com/waf/replay-csharp/releases) and unzip the archive.
- Run Replay.exe and type `help` to get started!
- The very first run of Replay will be slow (around 7 or 8 seconds), but subsequent starts should be much faster (1 second or less).

If you'd like to read more about what Replay can do, check out the [Usage page](https://github.com/waf/replay-csharp/wiki/Usage) on the wiki.

## Building from source

To build from source, clone the repository and run `dotnet build`. See the [Contributing page](https://github.com/waf/replay-csharp/wiki/Contributing) on the wiki for more information.

## Attribution

- Application logo by 588ku from [pngtree.com](https://pngtree.com/).