Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cweijan/vscode-office

让VSCode支持预览PDF,Exce和Word等格式, 并增加markdown所见即所得编辑器
https://github.com/cweijan/vscode-office

Last synced: 4 days ago
JSON representation

让VSCode支持预览PDF,Exce和Word等格式, 并增加markdown所见即所得编辑器

Awesome Lists containing this project

README

        

# Office Viewer

## 介绍

功能:

- 集成了一个图标主题和颜色主题.
- 支持预览xlsx, docx, svg, pdf, zip等办公文件格式.
- 开源免费无广告(如果对你有帮助考虑点下star(●'◡'●))
- 集成[Vditor](https://github.com/Vanessa219/vditor)实现对markdown的所见即所得编辑(对代码块支持较差).

## 最佳实践

和扩展[Git History Graph](https://marketplace.visualstudio.com/items?itemName=LinJun.git-graph-pro)一起使用, 安装[Git History Graph](https://marketplace.visualstudio.com/items?itemName=LinJun.git-graph-pro)后会在git面板增加一个同步按钮, 点击后会立刻对笔记进行同步, 不再需要你手动同步笔记.

![1711182793554](image/README-CN/1711182793554.png)

## 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)

适用于VS 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)