Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Novel Reader — read novels in the status barNew to Visual Studio Code? Get it now.
Novel Reader — read novels in the status bar

Novel Reader — read novels in the status bar

张子涵

|
2 installs
| (0) | Free
A quiet, stealthy novel reader for VS Code: a tiny status bar item becomes one line of text, ↑↓ to turn pages, auto-hides when idle. Disguised reader window, online book sources, AI assistant, reading stats.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Novel Reader — read novels in VS Code's status bar

A quiet, stealthy novel reader for VS Code. Normally the status bar shows only a tiny symbol; show it and the status bar itself becomes one line of the book — ↑ ↓ to turn pages, and it collapses back into the icon after a few idle seconds. A reader window disguised as notes.txt (or commented-out code / Markdown) handles large fonts. It also ships an online-book-source engine, an AI assistant and reading statistics.

Everything (shelf, progress, bookmarks, statistics, settings) is stored locally in VS Code's global storage. Nothing is uploaded.

Quick start

  1. Install the vsix and Reload Window; a ▯ appears on the right side of the status bar.
  2. Click it (or press Ctrl+Alt+N / Cmd+Alt+N) → the settings page opens → + Select txt → pick a local txt (GBK files work) → the status bar starts showing text. There is a sample story in samples/.
  3. ↓ next page, ↑ previous, → ← next / previous chapter, Esc hide; it hides itself after 5 idle seconds.
  4. Hidden → click ▯ (or the shortcut) to resume. Change books / options from the settings page (hover ▯ → Settings, the ⚙ in the reader window, or the command Novel: Settings).

Features

Master switch

  • Ctrl+Alt+M (Mac Cmd+Alt+M) turns the whole extension on/off. When off there is no status bar item, shortcuts and AI tools stay silent; press it again (or Ctrl+Alt+N) to turn it back on. Also in the settings page (Enable) and via Novel: Enable / Disable.

Stealth

  • Status bar reading — the text looks like just another status bar entry. Its width is fixed (padded to characters per page) and it is the leftmost item of the right group, so turning pages never moves other status bar items.
  • Auto hide — collapses after N idle seconds (default 5) and the moment VS Code loses focus.
  • Boss key — Ctrl+Alt+N hides everything and switches to a "looks like work" file.
  • No hover / focus ring on the text — while reading, the line is inert: no hover color, no focus outline, no tooltip. The blue focus outline VS Code draws on status bar items is neutralized globally via a theme color override (toggle hideStatusFocusRing).
  • Disguised reader window — tab title notes.txt by default; disguise can render it as numbered // comments (draft.js) or Markdown source (draft.md).
  • Code file mode (Ctrl+Alt+,) — opens the chapter as a real editor tab (draft/1.js) whose lines are // comments, with real syntax highlighting; ← → change chapter, Esc closes it. Styles: JS / Python / Markdown / plain (fileStyle).

Reading

  • Ctrl+Alt+G opens the chapter list — type a number to jump to that chapter; Shift+→/← skips 10 chapters.
  • Auto page turn with a human-like rhythm (±20 % jitter, occasional longer pause).
  • Reader window: font size, line height, width, paper / night theme, indent, auto-scroll.
  • EPUB support — pick a .epub in Select txt / epub; it is extracted to plain text with chapter detection.
  • Go to page (Ctrl+Alt+P), bookmarks, reading statistics (KPI, 30-day chart, 12-week heatmap, per-book table, CSV export).
  • Text color / opacity of the status bar line.

Shelf

  • Local txt / md / epub with automatic UTF-8 / UTF-16 / GBK detection, chapter detection, progress memory.
  • Online book sources: import site rules (JSON), search, add, read chapter by chapter with local caching — or add any book by pasting its table-of-contents URL.
  • Backup import / export.

AI assistant (settings page)

Ask it to find a book, download it as txt, or check whether a link is a table of contents. It decides which tool to use: web search (Bing / Baidu / Sogou), source search, fetch page, list shelf, add to shelf, download txt (confirmations are shown for shelf changes). Backends: VS Code built-in language models (no API key) or an OpenAI-compatible API.

Feedback

The settings page has a Feedback box (or run Novel: Feedback / Suggest a Feature): write a title and text, optionally attach anonymized diagnostics (extension and VS Code versions, OS, non-private settings — never book paths, titles or keys). Without a token it opens a prefilled GitHub issue in your browser; paste a GitHub token with Issues: read and write on this repository (stored in VS Code's SecretStorage) and the issue is created directly. Issues land at z-Zihan/vscode-novel-reader/issues with the feedback label.

Keyboard shortcuts

Key Action When
Ctrl+Alt+N (mac: Cmd+Alt+N) Toggle / boss key Anytime
Click ▯ Resume; opens settings when there is no book Hidden
Ctrl+Alt+G (mac: Cmd+Alt+G) Chapter list (type a number) Anytime
Ctrl+Alt+M (mac: Cmd+Alt+M) Master switch on/off Anytime
Ctrl+Alt+, (mac: Cmd+Alt+,) Open chapter as code file Anytime
Ctrl+Alt+P (mac: Cmd+Alt+P) Go to page Anytime
↓ / ↑ Next / previous page Reading
→ / ← Next / previous chapter Reading
Shift+→ / Shift+← Skip 10 chapters Reading
Enter Reader window Reading
Esc Hide Reading
Esc / ← → / [ ] / ⚙ Close / chapter / font size / settings Reader window
← → / Esc Chapter / close Code file tab focused

All shortcuts can be changed: Keyboard Shortcuts → search Novel.

Settings (novelReader.*)

Setting Default Description
enabled true Master switch
iconText ▯ Status bar symbol; empty = hidden completely
iconClickable true Whether the icon is clickable
hideStatusFocusRing true Neutralize VS Code's blue status bar focus outline (global theme override)
textColor / opacity "" / 1 Color and opacity of the reading line
charsPerPage 40 Characters per page (fixed width of the line)
idleSeconds 5 Idle seconds before auto hide; 0 = never
hideOnBlur true Hide when VS Code loses focus
autoPageSeconds 0 Auto page turn interval; 0 = off
bossKeyCover / coverFile true / "" Switch to a work-looking file after the boss key
bookPaths [] Shelf paths from settings
sources [] Online book sources (JSON)
windowTitle / disguise notes.txt / plain Reader window disguise
fileStyle js Code file mode style: js / py / md / txt
fontSize / lineHeight / fontFamily / pageWidth 16 / 1.8 / "" / 720 Reader window typography
theme / indent / autoScrollSpeed plain / true / 30 Reader window colors and scrolling
ai.enabled / ai.backend / ai.model / ai.endpoint true / vscode / "" / "" AI assistant backend
ai.searchUrl / ai.downloadDir "" / "" Web search template ({{q}}), download folder

Online book sources

The extension knows no websites by itself; you tell it how to search, where the table of contents is and where the text is. Import rules from the settings page (Import source → paste JSON or pick a file) or edit novelReader.sources.

Many novel sites render in the browser or sign their requests — rules cannot scrape those. Such sites can still be added by URL if the table of contents page itself is static. Mind copyright when choosing sites.

{
  "name": "Example",
  "url": "https://example.com",
  "charset": "utf-8",
  "search": {
    "url": "/search.php?keyword={{key}}&page={{page}}",
    "method": "GET",
    "list": ".result-item",
    "fields": { "name": ".title@text", "author": ".author@text", "bookUrl": "a@href", "latest": ".latest@text" }
  },
  "toc": {
    "list": "#list dd",
    "fields": { "title": "a@text", "contentUrl": "a@href" },
    "info": { "title": "#info h1@text", "author": "#info p@text##Author:\\s*(.*)##$1" }
  },
  "content": { "selector": "#content", "remove": [".ads"], "regex": "\\(To be continued.*?\\)" }
}
  • charset: utf-8 (default) or gbk.
  • search.url: {{key}} / {{page}}; method may be POST with body. Omit search to allow add-by-URL only.
  • Field rules: CSS selector@value##regex##replacement — value is text (default), html, textOwn, or an attribute such as href; an empty selector (@href) means the item itself; ##regex##replacement runs a global replace ($1 allowed).
  • toc.list matches each chapter; content.selector is the text container; optional paragraphs, remove, regex.

Example: samples/书源示例.json.

Install

Download the vsix from Releases and run code --install-extension statusbar-novel-reader-x.y.z.vsix, or Install from VSIX in the Extensions view, then reload.

Development

npm install
npm run build        # esbuild → dist/extension.js
npm test             # unit tests (decoding, chapters, paging, source engine, downloads, stats)
npm run test:vscode  # smoke test in the installed VS Code (local mock novel site, webview render acks)
npm run shot         # CDP screenshots of the status bar item (diagnostics)
npx @vscode/vsce package

Structure: src/book.ts pure logic · src/sources.ts source engine · src/ai/ tools, agent, web search, download · src/statsModel.ts + src/statsPage.ts statistics · src/reader.ts status bar, shelf, bookmarks · src/window.ts reader window · src/settingsPage.ts settings page. Tools must also be declared in package.json (contributes.languageModelTools) — a unit test checks the manifest against src/ai/toolDefs.ts.

Publishing: create a publisher at the Marketplace, put its id into package.json, then npx @vscode/vsce publish (PAT) or push a v* tag to use the included GitHub Actions trusted-publishing workflow.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft