Skip to content

Conversation

elecmonkey
Copy link
Contributor

Added copy button support for Shiki Magic Move code block.

Add new configuration for slides - magicMoveCopy:

  • false: Disable copy button
  • 'final': Show copy button only on the final step
  • true/'always': Show copy button on all steps (default)

Copy button in magic move code block respects the global codeCopy setting (if codeCopy is disabled, the magic move copy button will always be hidden) and it copies the current step's code content.

Hope this helps!

Closes #2255

Copy link

netlify bot commented Sep 24, 2025

Deploy Preview for slidev ready!

Name Link
🔨 Latest commit 3df6044
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/68d4919084e7920007360807
😎 Deploy Preview https://deploy-preview-2289--slidev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

pkg-pr-new bot commented Sep 25, 2025

Open in StackBlitz

@slidev/client

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/client@2289

create-slidev

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev@2289

create-slidev-theme

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev-theme@2289

@slidev/parser

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/parser@2289

@slidev/cli

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/cli@2289

@slidev/types

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/types@2289

commit: 1eca0e7

@antfu antfu merged commit e59e631 into slidevjs:main Sep 25, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show copy button when using shiki magic move
2 participants