Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

CSharp Snippet Runner

OHM EngineeringOHM Engineering315 downloads

Run C# code blocks in Obsidian using an auto-installed CSharpRepl runtime.

Add to Obsidian
CSharp Snippet Runner screenshot
CSharp Snippet Runner screenshot
  • Overview
  • Scorecard
  • Updates5

Obsidian plugin that adds a run button to C# code blocks. It uses CSharpRepl to execute the snippets and displays the output directly in the note.

Schermafbeelding 2026-05-29 110157

Features

  • Supports code blocks containing C# code with tags csharp, cs, c#, net, .net and dotnet
  • Adds a Run button below each block with one of the above tags
  • Runs snippets using bundled CSharpRepl auto-installed with dotnet tool into the plugin folder
  • Supports optional script arguments
  • Saves output and arguments per snippet in the plugin responses folder
  • Restores saved output/arguments when notes are rendered

Requirements

  • Obsidian version >= 1.12.7
  • dotnet SDK installed on your PC

Usage

  • Add a code snippet to your Obsidian note with one of these tags: csharp, cs, c#, net, .net or dotnet
  • Optionally enter args
  • Click Run C#

See CSharpRepl on how to use with includes and nuget packages

Development

npm install
npm run dev

Build

npm run build

Manual installation

Copy these files to:

<Vault>/.obsidian/plugins/csharp-snippet-runner/

  • main.js
  • manifest.json
  • styles.css
HealthExcellent
ReviewPassed
About
Designed for fast experimentation, education and learning, C# Snippet Runner turns your vault into an interactive C# playground. Write code blocks tagged csharp, cs, c#, net, or .net, then run them with a single click. The plugin executes these snippets using CSharpRepl which it auto-installs when needed. Output and error messages are shown below the code block. All without leaving Obsidian. It also persists data. This data persistance can be used to support sharing a vault with snippets which is especially useful for educational purposes.
CodeDevelopersCollaboration
Details
Current version
1.0.4
Last updated
6 months ago
Created
6 months ago
Updates
5 releases
Downloads
315
Compatible with
Obsidian 1.12.7+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Author
OHM EngineeringOHM Engineeringohm-engineering
github.com/OHM-Engineering
GitHubohm-engineering
  1. Community
  2. Plugins
  3. Code
  4. CSharp Snippet Runner

Related plugins

CodeScript Toolkit

Allows to do a lot of things with JavaScript/TypeScript scripts from inside the Obsidian itself

CustomJS

Reuse custom JavaScript across desktop and mobile.

BRAT

Easily install a beta version of a plugin for testing.

Templater

Create and use dynamic templates.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

Hot Reload

Automatically reload in-development plugins when their files are changed

Git

Integrate Git version control with automatic backup and other advanced features.

Sync Engine

The extensible vault synchronization engine: Fast · Free · Reliable. Supports WebDAV, S3, Google Drive, and Dropbox.