NetPad
A cross-platform C# editor and playground.
What is NetPad?
A cross-platform C# editor and playground.
Overview of NetPad
What it is
NetPad is a cross-platform C# editor and playground. It allows users to write and run C# code instantly without creating or managing projects. It can run as a native desktop application or in a web browser. NetPad is an open-source alternative to LINQPad.
Key features
- Scripting: write, save, and run scripts; manage namespaces; select .NET SDK version per script; auto-open unsaved scripts from previous session.
- Output & Visualization: dump complex objects to results console; export results to Excel or HTML; user-defined results styling.
- Database: add database connections and servers; query with LINQ or SQL.
- Packages & References: add NuGet packages to scripts; reference assemblies from disk.
- CLI: run scripts from the command line using the npad tool.
- Code Analysis: Syntax Tree Visualizer; IL Viewer.
- Editor: Vim keybindings; User Secrets management; Code Intelligence (OmniSharp) including code completion, semantic highlighting, CodeLens, inlay hints, hover documentation, go-to implementation, find references, find symbol, rename symbol, action suggestions, diagnostics, document highlighting, contextual code folding, and format document/selection/on-type.
Use cases
Prototyping and testing code snippets before incorporating them into projects. Data visualization for interactive analysis. Querying databases using LINQ or SQL. Learning and experimenting with new C# features. Creating and saving utility or administration scripts for repeated use.
Getting started
Requirements: .NET SDK (v6 or later). For database connections, EF Core tools (v6 or later) are also required.Download official installers from the repository releases page. Community packages are available via winget (Windows) and yay (Arch Linux).To install the CLI tool:dotnet tool install -g netpad.cli
License and pricing
License: MIT. Pricing: open source (free).
Based on the project's public README and repository metadata.