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-engineeringOHM EngineeringOHM Engineering69 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
3 weeks ago
Created
4 weeks ago
Updates
5 releases
Downloads
69
Compatible with
Obsidian 1.12.7+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Authors
ohm-engineeringohm-engineering
github.com/OHM-Engineering
GitHubohm-engineering
OHM EngineeringOHM Engineeringivan
GitHubohm-engineering
  1. Community
  2. Plugins
  3. Code
  4. CSharp Snippet Runner

Related plugins

CustomJS

Reuse custom JavaScript across desktop and mobile.

CodeScript Toolkit

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

Advanced Debug Mode

Enhances debugging experience.

ruby.wasm

Run ruby code in your notes using WebAssembly.

Templater

Create and use dynamic templates.

BRAT

Easily install a beta version of a plugin for testing.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Local REST API with MCP

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

Git

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

Mermaid Tools

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