Guide

Mr.Hope ... Less than 1 minute

# Usage

After enabling, this plugin will automatically add a copy button to the bottom right corner of each code block.

Tips

By default, the button is only displayed on desktop mode.

# Effect

// .vuepress/config.js
module.exports = {
  plugins: [
    [
      "@mr-hope/copy-code",
      {
        // your options
      },
    ],
  ],
};
1
2
3
4
5
6
7
8
9
10
11