#1919·vditor

希望支持隐藏章节侧栏并默认折叠 / Request: 允许隐藏章节侧栏并默认折叠

作者: MrMalkio创建于 2026年3月23日更新于 2026年3月23日

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 the user experience.

内容来源: Vanessa219/vditor