Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>FiLensNew to Visual Studio Code? Get it now.
FiLens

FiLens

Orca Zhang

|
2 installs
| (0) | Free
Local previews for Office, PDF, iWork, ebooks, archives, CAD and more.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FiLens for VS Code

Preview PDF, Office, iWork, ebooks, and more in a VS Code editor tab. Files are processed locally, and the preview interface follows your VS Code theme.

在 VS Code 标签页中本地预览文件。扩展内置 FiLens 前端和 WASM 运行时,无需上传文件、安装 CLI 或启动服务。

  • 右键点击资源管理器中的文件,选择「使用 FiLens 预览」。也可以从命令面板运行同名命令来选文件。
  • 直接打开 PDF、Office、iWork 和常见电子书。压缩包、CAD、3D 模型等也可以通过「重新打开编辑器的方式」选择 FiLens Preview。
  • 预览界面随 VS Code 主题变化,文档保留原本的颜色。切换标签页会保留预览位置。
  • 预览铺满编辑器区域。点击预览后按 F 切换 VS Code 窗口全屏。全屏时仍可使用编辑器标签栏。
  • 预览为只读。对于分卷压缩包或依赖配套文件的模型,扩展当前仅加载选中的文件。

安装

需要 VS Code 1.100 或更高版本。在扩展面板的「⋯」菜单选择「从 VSIX 安装」,然后选择 filens-vscode-0.1.2.vsix。

从源码打包

在仓库根目录执行以下命令。若已有预览所需的 WASM 产物,可直接执行最后一条。

npm ci
npm run build:wasm
npm --prefix integrations/vscode run package

安装包位于 integrations/vscode/dist/。

发布到 VS Code Marketplace

此扩展的 ID 是 orca-zhang.filens-vscode。需要拥有 orca-zhang 发布者的发布权限。首次发布前可在 Marketplace 管理页 创建发布者或确认权限。

在终端运行以下命令。登录时,在终端粘贴拥有 Marketplace (Manage) 权限的 Azure DevOps PAT。

npx --yes @vscode/vsce@3.6.0 login orca-zhang
npm --prefix integrations/vscode run package
npx --yes @vscode/vsce@3.6.0 publish --packagePath integrations/vscode/dist/filens-vscode-0.1.2.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft