dsh-explorer-editor
IdentifiedEdits workspace text files in place inside the DSH file preview, with Monaco highlighting and project-typed completion.
dsh-explorer-editor
由于之前工作主要用 Cursor,习惯了 Cursor 可以直接手动编辑的能力,所以写了个让 DSH 可以直接手动编辑文件内容的小插件

功能
打开右侧栏里的文本文件,预览面板本身就是编辑器,不再是只读文本。集成 Monaco 的能力:高亮、行号、多光标、撤销栈、括号匹配、查找替换、快捷键等
支持的文件类型
| 类别 | 后缀 |
|---|---|
| 代码 | ts tsx mts cts js jsx mjs cjs py go rs java kt kts rb php cs swift c h cpp cc cxx hpp hh m mm |
| 标记与数据 | json jsonc json5 css scss less html htm xml vue svelte graphql gql |
| 文档 | md markdown mdx txt text rst adoc |
| 配置与脚本 | yml yaml toml ini conf cfg env properties sh bash zsh fish ps1 psm1 bat cmd gradle sql lock log |
| 点文件 | gitignore gitattributes gitmodules npmrc nvmrc yarnrc editorconfig prettierrc eslintrc babelrc dockerignore clang-format tool-versions 等(按点后面的名字匹配,例如 .gitignore 的后缀是 gitignore) |
DSH 的匹配规则是「文件名以 . + 后缀结尾」,因此没有后缀的文件(Makefile、LICENSE)和未列出的后缀仍由内置只读视图打开。图片、PDF、Office 文档不会被接管;Markdown 默认进编辑器,但内置的渲染视图仍在视图菜单里可切回。
要求
- DSH
0.2.1-rc.5及以上
安装
dsh plugin --profile desktop add @jianlong-ww/dsh-explorer-editor # 桌面应用
dsh plugin --profile web add @jianlong-ww/dsh-explorer-editor # 浏览器端
也可以用 GitHub Release 里的预构建包(与 npm 上的内容相同,适合不方便访问 npm 的环境):
dsh plugin --profile desktop add https://github.com/jianlong-ww/dsh-explorer-editor/releases/download/v0.1.0/dsh-explorer-editor-0.1.0.tgz
不建议用 github: 或 git+https:// 安装:仓库不包含编译产物,pnpm 会把 git 依赖当成待构建的包去装它的 devDependencies(含 monaco-editor),在 Windows 上还会因跨盘符号链接而报 EPERM。
装完重启 dsh,然后刷新页面。
卸载:
dsh plugin --profile desktop remove @jianlong-ww/dsh-explorer-editor
从源码安装
git clone https://github.com/jianlong-ww/dsh-explorer-editor.git
cd dsh-explorer-editor
pnpm install && pnpm build
dsh plugin --profile desktop add .
License
MIT,见 LICENSE。内置的 Monaco 构建来自 monaco-editor(MIT)。
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
Similar plugins
by yangshen830-eng
VS Code-style code editor: sidebar file tree over the workspace, Monaco editing, file read/write, Git status and diff, search, and Markdown preview.
★ 3
↓ 191/wk
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-editorby oneirictouch
左侧边栏的“资料浏览器”和主工作区的“文本编辑器”,页签方式展示,适合讨厌工作区被过度分割的人。
★ 0
MIT
TypeScript
Sep 18, 2026
dsh plugin --profile web add dsh-explorer-editorby yangsong608
DSH 桌面版文件编辑器插件:打开、编辑、查看文件(独立实现,不依赖 OneEdit)
★ 0
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-file-editorby xusuyang030218
DSH (DeepSeek Harness) file preview & editor plugin: in-browser workspace file tree, multi-format preview, online editing, version history, search. DSH 文件预览插件。
★ 0
MIT
JavaScript
Aug 24, 2026
dsh plugin --profile web add dsh-preview-uiby Dpf555
VS Code-style three-column Explorer + Monaco editor plugin for the DeepSeek Harness web GUI
★ 5
MIT
JavaScript
Aug 15, 2026
dsh plugin --profile web add @dsh-local/dsh-workbenchby Arrosam
Adds upload, download, new folder, delete, drag-to-move, drag-to-chat and in-place text editing with auto-save to the workspace Files tab and file previews.
★ 3
MIT
JavaScript
Nov 4, 2026
dsh plugin --profile web add dsh-better-workspace-file-manager