Doc Reader (VSCode Extension)
Read common documents in a dedicated VSCode panel.
V1 Scope
- Local files only (offline-first, not limited to current workspace)
- Supported formats:
md, markdown, txt, log, json, yaml, yml, pdf, docx
- Dedicated reading panel (does not replace default editor)
- Core reading features:
- Markdown table of contents
- In-document search (text/markdown/docx)
- PDF smooth scrolling + page navigation buttons + search locate (when enabled)
- DOCX rendering with page navigation + zoom progress in toolbar
- Optional Activity Bar icon with Actions + Recent Files views
- Theme options list (
Auto/Light/Dark) available in Activity Bar Actions view
- Language options list (
Follow System/English/简体中文) available in Activity Bar Actions view
- Recent Files view supports
Clear List and Hide List from view menu (...)
- UI localization (
en / zh-CN), default follows VSCode display language
Ctrl/Cmd + Mouse Wheel zoom (PDF and text-like documents)
- Collapsible and resizable left sidebar for document outline/thumbnails (no Recent section inside preview)
- Collapsed sidebar toggle floats at top-left of preview area (no reserved sidebar column)
- Theme toggle (
auto/light/dark)
- Font zoom (text/markdown)
- Recent files (Activity Bar + command palette)
- Reading position restore
Commands
Doc Reader: Open Current File
Doc Reader: Open File
Doc Reader: Open Recent
Doc Reader: Toggle Theme
Settings
docReader.fontSize
docReader.lineHeight
docReader.theme
docReader.showActivityBarIcon
docReader.recentLimit
docReader.pdf.enableTextLayer
docReader.docx.breakPages
Development
npm install
npm run compile
npm test
| |