Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cweijan/vscode-office
Let VSCode support previewing PDF, Excel, Word and other formats, and add markdown WYSIWYG editor.
https://github.com/cweijan/vscode-office
Last synced: 4 days ago
JSON representation
Let VSCode support previewing PDF, Excel, Word and other formats, and add markdown WYSIWYG editor.
- Host: GitHub
- URL: https://github.com/cweijan/vscode-office
- Owner: cweijan
- License: mit
- Created: 2021-03-05T06:34:30.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-14T10:08:41.000Z (13 days ago)
- Last Synced: 2025-01-16T07:09:39.090Z (11 days ago)
- Language: JavaScript
- Homepage:
- Size: 11.2 MB
- Stars: 1,097
- Watchers: 6
- Forks: 104
- Open Issues: 162
-
Metadata Files:
- Readme: README-CN.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Office Viewer
## 介绍
功能:
- **注意这个扩展不再积极维护.**
- 集成了一个图标主题和颜色主题.
- 支持预览xlsx, docx, svg, pdf, zip等办公文件格式.
- 集成[Vditor](https://github.com/Vanessa219/vditor)实现对markdown的所见即所得编辑(对代码块支持较差).## Markdown
编辑器使用说明: [禁用方式看这里](https://github.com/cweijan/vscode-office?tab=readme-ov-file#markdown)
- 编辑方式: 直接通过vscode打开md文件.
- 可通过工具栏按钮打开VSCode内置编辑器.
![img](image/README-CN/1640579182342.png)
- 在编辑器打开右键菜单可将markdown导出为pdf, docx或者html, pdf依赖于chromium, 可通过 `vscode-office.chromiumPath`配置chromium浏览器路径.
![1685418034035](image/README-CN/1685418034035.png)快捷键: 基于[Vditor快捷键](shortcut.md)以及更多:
- 将列表上移一行: `Ctrl Alt I` / `⌘ ^ I`
- 将列表下移一行: `Ctrl Alt J` / `⌘ ^ J`
- 在VS Code中编辑: `Ctrl Alt E` / `⌘ ^ E`## 其他功能
- 图标主题: 内置了Material Icon Theme部分icon
- Excel: 支持对xlsx, csv等excel文件进行预览和保存(注意xlsx保存会丢失格式, csv则不支持gbk中文)
- HTML: 编辑HTML的过程中按下ctrl+shift+v可实时预览.
- PDF: 支持直接预览pdf文件
- HTTP: 用于发送http请求, 由于REST Client本地请求有bug, 修改后进行集成.## Sponsor
[![Database Client](https://database-client.com/text_logo.png)](https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-database-client2)
适用于Visual Studio Code的数据库客户端, 支持**MySQL/MariaDB, PostgreSQL, SQLite, Redis**以及**ElasticSearch**等数据库的管理, 且可作为一个SSH客户端, 极大地提升您的生产力! [立刻安装](https://marketplace.visualstudio.com/items?itemName=cweijan.vscode-database-client2).
## Credits
- PDF rendering: [mozilla/pdf.js/](https://github.com/mozilla/pdf.js/)
- Docx rendering: [VolodymyrBaydalka/docxjs](https://github.com/VolodymyrBaydalka/docxjs)
- XLSX rendering:
- [SheetJS/sheetjs](https://github.com/SheetJS/sheetjs): XLSX parsing
- [myliang/x-spreadsheet](https://github.com/myliang/x-spreadsheet): XLSX rendering
- HTTP: [Rest Client](https://github.com/Huachao/vscode-restclient)
- Markdown: [Vanessa219/vditor](https://github.com/Vanessa219/vditor)
- Material Icon theme: [PKief/vscode-material-icon-theme](https://github.com/PKief/vscode-material-icon-theme)