#1919·vditor

希望支持隐藏章节侧边栏并默认折叠 / Request: allow hiding the section sidebar and default it to collapsed

Author: MrMalkioCreated Mar 23, 2026Updated Mar 23, 2026

编辑模式

  • ir 即时渲染模式

描述问题

在 VSCode / Antigravity 中使用 OfficeViewer 扩展预览 Markdown 时,左侧的章节侧边栏会默认展开,并且目前没有明显的方法将其隐藏,或让它默认处于关闭 / 折叠状态。

当我同时打开多个资源管理器窗口、侧栏面板或分栏工作区时,这个章节侧边栏会占用较多横向空间,导致正文预览区域明显变窄,影响阅读和编辑体验。

从截图可以看到,即使我并不需要章节导航,这个侧边栏仍持续占据左侧区域。在较窄窗口、多分栏、或同时打开多个侧栏的情况下,这个问题会更明显。

期待的结果

希望支持以下功能:

  1. 提供一个选项或按钮,可以手动隐藏 / 显示章节侧边栏。
  2. 支持将章节侧边栏默认设置为关闭 / 折叠状态。
  3. 最好还能记住上一次的展开 / 折叠状态。

这样在多窗口和分栏工作流中可以节省屏幕空间,把更多区域留给正文内容。

截屏或录像

已附上截图。

第一张截图展示了章节侧边栏占用了较大的左侧空间。
第二张截图展示了在另一个文件中该侧边栏同样默认展开,占用了正文区域可用宽度。

版本信息

  • 版本:OfficeViewer 3.5.4 (2025-04-28)
  • 扩展 ID:cweijan.vscode-office
  • 操作系统:请填写
  • 浏览器:N/A(桌面端 VSCode / Antigravity)

其他信息

补充说明:

  • 问题发生在 OfficeViewer 扩展内部。
  • 我注意到扩展 credits 中标注 Markdown 渲染使用的是 Vanessa219/vditor,所以这也可能是底层 Markdown 组件相关的问题。
  • 即便如此,我当前遇到问题的实际环境仍然是 OfficeViewer 扩展。
  • 这个需求在小屏幕、分屏、以及同时打开多个侧栏或资源管理器面板时更明显。
  • 这属于可用性 / 体验问题,但对日常使用影响很直接。

English version

Editor mode

  • ir Instant Rendering mode

Describe the problem

When using the OfficeViewer extension in VSCode / Antigravity to preview Markdown files, the section sidebar on the left is expanded by default, and there does not appear to be a clear way to hide it or make it closed / collapsed by default.

When working with multiple explorer panes, side panels, or split windows, this section sidebar takes up too much horizontal space and makes the main content area noticeably narrower, which hurts usability.

As shown in the screenshots, the section sidebar continues to occupy the left side even when it is not needed. This becomes more noticeable in narrow windows, split layouts, or workflows with multiple side panels open.

Expected result

I would like the following behavior:

  1. A way to manually hide / show the section sidebar.
  2. An option to have the section sidebar closed / collapsed by default.
  3. Ideally, it should remember the last expanded / collapsed state.

This would save screen space and leave more room for the document content in multi-window and split-pane workflows.

Screenshots or recordings

Screenshots are attached.

The first screenshot shows the section sidebar taking up a large amount of space on the left.
The second screenshot shows the same sidebar expanded by default in another file, reducing the usable width for the main content.

Version information

  • Version: OfficeViewer 3.5.4 (2025-04-28)
  • Extension ID: cweijan.vscode-office
  • Operating system: Please fill in
  • Browser: N/A (desktop VSCode / Antigravity)

Additional information

Additional notes:

  • The issue occurs inside the OfficeViewer extension.
  • I noticed that the extension credits list Vanessa219/vditor for Markdown rendering, so this may also be related to the underlying Markdown component.
  • Even so, the actual environment where I am seeing this issue is OfficeViewer.
  • The problem is more noticeable on smaller screens, split layouts, or when multiple side panels are open.
  • This is mainly a usability / UX request, but it has a direct impact on day-to-day use.