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

Codeblock Copy Always

yuru7yuru744 downloads

Show a copy button while editing fenced codeblocks in Live Preview.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

English | 日本語

An Obsidian plugin that keeps a copy button visible while you edit a fenced code block in Live Preview.

Why

In Live Preview, Obsidian shows a language label and copy control on a code block when the cursor is outside it. Click inside the block to edit, and that control disappears.

This plugin fills that gap. While you are editing a fenced code block, a copy icon stays in the top-right corner of the block.

How to use

  1. Open a note in Live Preview.
  2. Place the cursor inside a fenced code block (``` or ~~~).
  3. Click the copy icon in the top-right of the block.

The plugin copies the code itself, not the fence lines. When the copy succeeds, the icon briefly changes to a checkmark.

When the cursor leaves the block, or the editor loses focus, the plugin hides its button so Obsidian’s built-in copy control can show again.

There are no settings. Enable the plugin and it is ready to use.

Installation

From Community Plugins

Search for Code Block Copy Always in Community Plugins and install it.

Requirements

  • Obsidian 1.8.0 or later
  • Desktop (Windows, macOS, or Linux)

Limitations

  • Live Preview only. Reading view already has a copy button, and Source mode is unchanged.
  • Fenced code blocks only. Indented code blocks are not supported.
  • Desktop only. The plugin does not run on mobile.
HealthExcellent
ReviewPassed
About
Keep a copy button visible while editing fenced code blocks in Live Preview so you can copy code without exiting edit mode. Click the top-right icon to copy the code (excluding fence lines); it shows a check on success and hides when you leave the block or lose focus.
CodeEditingInterface
Details
Current version
0.1.2
Last updated
Last week
Created
Last week
Updates
3 releases
Downloads
44
Compatible with
Obsidian 1.8.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
yuru7yuru7yuru7
GitHubyuru7
  1. Community
  2. Plugins
  3. Code
  4. Codeblock Copy Always

Related plugins

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.

Hover Editor

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

Code Space

Professional code file management with visual dashboard, syntax highlighting editor, Markdown embedding, external folder mounts, and terminal integration.

Dragger

Drag and drop any block (paragraphs, headings, lists, etc.) to rearrange content like Notion.

VSCode Editor

Edit Code Files like VSCode.

Hider

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

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)