cjm-m/dsh-paste-code-block ↗★ 3
dsh-paste-code-block
将粘贴的代码或文本转换为可折叠、带语言标签的卡片。 适合频繁粘贴代码、希望保持对话界面整洁的 Web 端用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cjm-m/dsh-paste-code-block说明文档
阅读完整 README ↗Usage
- Copy any code or multi-line text from anywhere.
- Paste into the DSH input → it collapses into a chip such as
代码块 1/Code #1. - Click the chip to open the card: read, edit inline, copy, collapse. Click the chip's (or the card's)
×to delete that block. - Send — the full original text goes out as a proper fenced code block.
- In the conversation it stays folded: each block sits in the bubble as a collapsed card — click the header to expand and read, click again to collapse.
Detection threshold: contains a newline / ≥ 2 lines / length ≥ 96 / indented & brace-dense / fenced — any one turns the paste into a block.