Skip to main content

Markdown folding not working

Fix your VS Code Markdown code folding issue! Learn why folding may not be working and discover the simple solution to enable code blocks and headings folding for a cleaner editing experience.

· One min read
View raw
Christophe
Markdown, WSL and Docker lover ~ Insatiable curious.
Cet article existe aussi en français — lire la version française.

This article is over a year old but was reviewed on July 30, 2026 — the content is still accurate.

Markdown folding not working

⚡
TL;DR

This article fixes a case where code folding doesn't work in VSCode's Markdown editor: make sure the built-in @builtin Markdown Language Features extension is enabled.

https://github.com/microsoft/vscode/issues/107130

In case code folding is not working in Markdown mode as illustrated below, make sure the @builtin Markdown Language Features addon is enabled. That same built-in extension powers sticky scroll in Markdown files, which stops working for the same reason.

code_folding

Markdown Language Features

Once folding works again, you may want more control over what gets folded: Working with regions in VSCode shows how to define your own foldable blocks, even in file types VSCode doesn't support natively.


Was this article helpful?
Did you try the steps in this article?