Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Blockquote FoldNew to Visual Studio Code? Get it now.
Blockquote Fold

Blockquote Fold

Naoki Matagawa

| (0) | Free
Fold consecutive ">" quote blocks and indentation in plain text files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Blockquote Fold

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft