Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built a VS Code extension that lets you read books as source code

说明与用途

VS Code 扩展让开发者在编辑器内以代码、Markdown 或日志流的形式阅读 PDF 和 EPUB 书籍,保持工作流在同一环境中并离线使用。

问题

Developers want to read books during idle time without leaving the editor.

结果

The extension enables reading books within VS Code, reducing context switches and keeping reading sessions keyboard‑driven and offline.

工作流

  • Import a book into the extension
  • Choose a disguise mode (code, markdown, or log)
  • Navigate pages and sections using keyboard
  • Use panic key to close the tab instantly
  • Position is saved and restored on reopening

证据

Import a book, and its text appears in an editor tab in one of three disguise modes:

PDF text extraction uses pdf-parse, followed by heuristics to detect sections.

EPUBs are unzipped with jszip, then I walk the OPF spine and convert each XHTML chapter to plain text.

The reader is a virtual document, so nothing gets written to your workspace and there is nothing to accidentally commit.

  • 记录日期: 2026-10-15T11:56:03.479Z