2 Star 1 Fork 0

不吃西红柿的羊角仕/hide-novel-in-code

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
# Novel Hide in Code **Novel Hide in Code** is a VS Code extension that allows you to read novels within the code editor. It supports configuring the novel path, selecting a novel, displaying progress, and navigating pages. ## Features - **Configure Novel Folder Path:** Set the path to the folder containing your novel TXT files. - **Select Novel:** Choose a novel from the configured folder to read within VS Code. - **Display Novel Content:** Show the content of the selected novel in the editor. - **Page Navigation:** Navigate through the novel with previous and next page commands. - **Progress Display:** Show the reading progress as a percentage. - **Customizable:** Adjust the maximum line length and the number of lines displayed per page. ## Commands | Command | Description | | --- | --- | | `extension.showNovel` | Show the content of the selected novel. | | `extension.previousPage` | Navigate to the previous page of the novel. | | `extension.nextPage` | Navigate to the next page of the novel. | | `extension.setNovelFolderPath` | Set the path to the folder containing your novel TXT files. | | `extension.showCodeLensAtCursor` | Show CodeLens at the cursor position. | | `extension.toggleCodeLens` | Toggle the display of CodeLens. | | `extension.updateConfig` | Update the maximum line length and the number of lines displayed per page. | ## Keybindings | Keybinding | Command | | --- | --- | | `PageUp` | `extension.previousPage` | | `PageDown` | `extension.nextPage` | ## Configuration The extension provides the following configuration options: - `novelHideInCode.novelFolderPath`: The path to the folder containing novel TXT files. Default is an empty string. - `novelHideInCode.maxLineLength`: The maximum number of characters per line. Default is 50. - `novelHideInCode.numberOfLines`: The number of lines to display, including the last line from the previous page. Default is 5. ## Usage 1. **Set Novel Folder Path:** Use the command `extension.setNovelFolderPath` to set the path to the folder containing your novel TXT files. 2. **Select and Show Novel:** Use the command `extension.showNovel` to select a novel and display its content in the editor. 3. **Navigate Pages:** Use the keybindings `PageUp` and `PageDown` to navigate through the novel. 4. **Update Configuration:** Use the command `extension.updateConfig` to update the maximum line length and the number of lines displayed per page. ## Development To run and develop the extension: 1. Clone the repository. 2. Install the dependencies using `npm install`. 3. Open the project in VS Code. 4. Run the extension using the Run and Debug panel. ## Contributing Contributions are welcome! Please submit issues and pull requests on the [Gitee repository](https://gitee.com/notomatoes/hide-novel-in-code). ## License This project is licensed under the MIT License.

简介

暂无描述 展开 收起
TypeScript 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/notomatoes/hide-novel-in-code.git
git@gitee.com:notomatoes/hide-novel-in-code.git
notomatoes
hide-novel-in-code
hide-novel-in-code
main

搜索帮助