Thief-Book Pro Plus 摸鱼看书神器
致谢本插件基于 Thief-Book 开发,感谢原作者 C-TEAM 提供的创意与基础实现。本插件在此基础上扩展了书架多书管理、章节目录跳转、阅读进度记忆、自动翻页、网络小说加载、EPUB 支持、多编码自动识别等功能。再次感谢 C-TEAM 的开源精神! ✨ 功能特性
📦 安装在 VS Code 插件市场搜索
🚀 快速开始1. 配置小说路径按
2. 开始阅读打开任意代码文件,按 ⌨️ 快捷键
📊 阅读周报按
🔤 多编码支持插件会自动检测 TXT 文件编码,无需手动转换:
直接把原始 GBK 小说文件路径填入配置即可正常阅读。 📚 EPUB 格式书架和
插件自动解析 EPUB 内部结构,按章节顺序提取正文,章节跳转、书签进度等功能与 TXT 完全一致。 📑 章节识别格式以下章节标题格式均可自动识别:
⏩ 两种自动翻页模式模式一:固定间隔翻页(
|
| 配置项 | 说明 | 默认值 |
|---|---|---|
thiefBook.filePath |
单本模式小说路径(支持 .txt / .epub) | "" |
thiefBook.bookshelf |
书架路径列表(支持 .txt / .epub) | [] |
thiefBook.pageSize |
每页显示字数 | 50 |
thiefBook.autoFlipInterval |
固定间隔翻页间隔(秒) | 10 |
thiefBook.readingSpeed |
自动阅读速度(字/分钟) | 300 |
thiefBook.autoHideMinutes |
无操作自动隐藏时间(分钟),0 禁用 | 5 |
thiefBook.isEnglish |
是否英文书籍(调整每页字符数) | false |
thiefBook.lineBreak |
换行替换符 | " " |
thiefBook.readStats |
每日阅读字数记录(自动维护) | {} |
📝 注意事项
- 快捷键仅在代码编辑区域获得焦点时生效(除老板键和书架外)
- 点击状态栏可直接打开书架
- 网络小说加载后缓存于系统临时目录,重启插件需重新加载
📄 License
MIT
Thief-Book Pro Plus — Sneaky Novel Reader for VS Code
Read novels secretly in the VS Code / Cursor status bar. Supports bookshelf, chapter navigation, auto page flip, online novels, EPUB format, and automatic encoding detection (UTF-8 / GBK / GB2312).
Stop alt-tabbing. Start status-bar reading.
Whether you're deep in a cultivation saga or a fantasy epic, Thief-Book Pro Plus keeps your story right where your boss can't see it — tucked quietly at the bottom of your editor. One keystroke to read, one keystroke to hide.
Acknowledgements
This extension is built upon Thief-Book by C-TEAM. Thank you for the brilliant original idea and open-source spirit!
✨ Features
- 📖 Status Bar Display: Novel content always visible at the bottom — completely discreet
- 🗂️ Bookshelf: Configure multiple books, switch instantly, each book remembers its progress
- 📑 Smart Chapter Detection: Recognizes diverse chapter formats — numbered chapters, prologues, epilogues, interludes, and more
- 🔤 Auto Encoding Detection: Automatically handles UTF-8, GBK, and GB2312 — no manual conversion needed
- 📚 EPUB Support: Load
.epubfiles directly, chapters parsed and read in order - 💾 Progress Memory: Each book independently remembers where you left off
- ⏩ Fixed Interval Flip: Set a fixed number of seconds for automatic page turns
- 📖 Speed-Based Auto Read: Calculates flip interval from your reading speed (chars/min) — read faster, flip faster
- 🙈 Auto-Hide on Idle: Hides novel content after a configurable period of inactivity; any key press restores it instantly
- 🌐 Online Novel: Load a novel directly from a URL, encoding auto-detected
- 🔍 Chapter Title: Current chapter name always shown in the status bar
- 📊 Weekly Reading Report: Automatically tracks daily reading volume, displays a 7-day bar chart of your reading habits
- 🔴 Boss Key: Instantly hide content and show a random Hello World snippet
⌨️ Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+Alt+. |
Next page |
Ctrl+Alt+, |
Previous page |
Ctrl+Alt+; |
Jump to page number |
Ctrl+Alt+T |
Chapter navigator |
Ctrl+Alt+B |
Open bookshelf |
Ctrl+Alt+A |
Fixed interval auto flip On/Off |
Ctrl+Alt+R |
Speed-based auto read On/Off |
Ctrl+Alt+O |
Load online novel |
Ctrl+Alt+W |
Weekly reading report |
Ctrl+M |
Boss key (hide content) |
Mac users: replace
CtrlwithCmd
📊 Weekly Reading Report
Press Ctrl+Alt+W to open the reading report panel showing the past 7 days:
- Each manual next-page or auto-flip counts toward the day's total
- Data is stored in
thiefBook.readStatsand persists indefinitely
🔤 Encoding Support
The plugin automatically detects TXT file encoding — no manual conversion required:
| Encoding | Support |
|---|---|
| UTF-8 (with or without BOM) | ✅ |
| GBK | ✅ Auto-detected |
| GB2312 | ✅ Auto-detected |
📚 EPUB Support
Both thiefBook.filePath and thiefBook.bookshelf accept .epub file paths. The plugin parses the EPUB structure, extracts chapters in spine order, and presents them as plain text. All features (bookshelf, chapter jump, progress memory) work identically with EPUB files.
⏩ Two Auto-Flip Modes
Mode 1: Fixed Interval (Ctrl+Alt+A)
Flips at a fixed number of seconds. Good for leaving it running unattended:
{ "thiefBook.autoFlipInterval": 10 }
Mode 2: Speed-Based Auto Read (Ctrl+Alt+R)
Calculates the flip interval from your reading speed. Faster speed = faster flips:
{ "thiefBook.readingSpeed": 300 }
Interval = pageSize ÷ readingSpeed × 60 seconds. At 50 chars/page and 300 chars/min → 10 seconds. At 600 chars/min → 5 seconds.
The two modes are mutually exclusive — starting one stops the other.
🙈 Auto-Hide on Idle
When not in auto-flip mode, content hides after the configured idle period:
{ "thiefBook.autoHideMinutes": 5 }
Set to 0 to disable. Any reading action instantly restores the content and resets the timer.
🌐 Online Novel
Press Ctrl+Alt+O, enter a URL. The extension fetches the page, auto-detects encoding, strips HTML, and caches the content locally for reading.
⚙️ Configuration
| Setting | Description | Default |
|---|---|---|
thiefBook.filePath |
Single book path (.txt or .epub) | "" |
thiefBook.bookshelf |
List of book paths (.txt or .epub) | [] |
thiefBook.pageSize |
Characters per page | 50 |
thiefBook.autoFlipInterval |
Fixed flip interval (seconds) | 10 |
thiefBook.readingSpeed |
Auto read speed (chars/min) | 300 |
thiefBook.autoHideMinutes |
Idle hide timeout (minutes), 0 = disabled | 5 |
thiefBook.isEnglish |
Enable English mode (wider page) | false |
thiefBook.lineBreak |
Line break replacement character | " " |
thiefBook.readStats |
Daily reading records (auto-maintained) | {} |
📝 Notes
- Keyboard shortcuts only work when the code editor is focused (except Boss Key and Bookshelf).
- Click the status bar to open the bookshelf directly.
- Online novel content is cached in the system temp directory and must be reloaded after restart.
📄 License
MIT