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

Copy Inline Code

ozavodnyozavodny18k downloads

Easily copy the contents of an inline code element with a single click.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates8

Copy the contents of inline code in Obsidian with a single click. The plugin adds a configurable copy icon to inline code in Live Preview and Reading Mode.

Copy Inline Code demonstration

Features

  • Copy inline code with one click.
  • Choose a Lucide icon or the legacy clipboard icon.
  • Show copy icons permanently or only while hovering.
  • Position copy icons on the right or left of inline code.
  • Exclude matching inline code with regular-expression filters.
  • Apply setting changes immediately without restarting Obsidian.
  • Keep hover icons overlaid without changing line length or line height.
  • Hide copy icons when printing or exporting notes to PDF.
  • Display a notice when copying succeeds or fails.

Configuration

Open Settings → Copy Inline Code to configure:

  • Show on hover — hide the copy icon until inline code is hovered.
  • Exclusion patterns — prevent copy icons from appearing on matching inline code.
  • Icon position — place the copy icon on the right or left.
  • Icon name — select a Lucide icon by name.
  • Use legacy icon — use the original clipboard emoji instead of a Lucide icon.

Installation

Community Plugins

  1. Open Settings → Community plugins in Obsidian.
  2. Select Browse and search for Copy Inline Code.
  3. Select Install, and then select Enable.

BRAT

To test a beta or pre-release version with BRAT:

  1. Open Settings → BRAT.
  2. Select Add Beta plugin.
  3. Enter https://github.com/ozavodny/obsidian-copy-inline-code-plugin.
  4. Add and enable the plugin.

Manual installation

  1. Download main.js, styles.css, and manifest.json from the latest GitHub release.
  2. Copy them to [vault-folder]/.obsidian/plugins/copy-inline-code/.
  3. Reload Obsidian and enable Copy Inline Code under Community plugins.

Development

  • Install Node.js 20 LTS or newer. The minimum supported Node.js version is 18.18.
  • Run npm ci to install the exact dependency versions from package-lock.json.
  • Run make dev to compile continuously while developing.
  • Run make localbuild to create a copy-ready plugin directory under local-build/.
  • Run make check before committing to lint the source and manifest and produce a strict production build.

Additional dependency checks are available through npm audit --audit-level=low and npm install-scripts ls.

Credits

Copy Inline Code was originally created by Ondrej Zavodny.

The plugin is now maintained by Vitovt.

The original GNU General Public License v3.0 remains intact.

HealthExcellent
ReviewSatisfactory
About
Add a clickable, customizable copy icon inside inline code spans to copy their content to the clipboard. Click the icon to copy inline code quickly without selecting text.
CodeIconsInterface
Details
Current version
2.1.0
Last updated
4 days ago
Created
3 years ago
Updates
8 releases
Downloads
18k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
ozavodnyozavodny
github.com/Alddar
GitHubozavodny
  1. Community
  2. Plugins
  3. Code
  4. Copy Inline Code

Related plugins

Iconic

Customize your icons and their colors directly from the UI, including tabs, files & folders, bookmarks, tags, properties, and ribbon commands.

Inline Encrypter

Encrypt secrets in your notes.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Mermaid Tools

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

Hover Editor

Transform the Page Preview hover popover into a fully working editor instance.

Note Toolbar

Add customizable toolbars to your notes.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.