VS Code Extensions
B

Blockquote Fold

by asial-matagawa

Fold consecutive ">" quote blocks and indentation in plain text files.

Downloads

4

Rating

— (0)

Version

0.4.0

Last updated

Jun 09, 2026

A VS Code folding provider for plain text files. It folds two things:

  1. Quote blocks — runs of consecutive lines that start with >. Lines with the same leading-whitespace width and the same > depth (>, >>, >>> …) are grouped into a single fold. A change in depth or indentation starts a new fold.
  2. Indentation — tab/space indented blocks, the same way VS Code's built-in indentation folding works. (A folding provider replaces the built-in indentation folding, so this extension reproduces it to keep both available.)
>We want this.              ┐
>                           │ ← one fold
>The desired behavior.      ┘

                    >>>oliver  ┐
                    >>>...      ┘ ← different depth/indent, separate fold

It works as a standard folding source, so the gutter fold arrows, Ctrl+K Ctrl+0 (Fold All), etc. all apply. There are no other features.

Setup

Plain text files use indentation folding by default, which ignores folding providers. Switch plain text to the auto strategy in settings.json:

"[plaintext]": {
  "editor.foldingStrategy": "auto"
}

Install (not published to the marketplace)

npx @vscode/vsce package
code --install-extension blockquote-fold-0.4.0.vsix --force

After installing, run Developer: Reload Window to reload.

MIT License.

Related extensions