Markdown
Folding a Markdown document's sections under their headings. Live in a Markdown editor and in a Markdown preview; the editor and its preview share one fold state, so folding in either folds both. In an editor this section is the one holding the caret; in a preview, the one at the top of the view. Collapsing a section keeps the state of the sections inside it.
Toggle this section
Cog › Key Bindings › Markdown
markdown.toggleSection
Collapse or expand the section containing the caret (editor) or the top of the view (preview).
Default: Ctrl+M,M · Scope: Editor · Preview
Collapse or expand the current section.
Toggle all sections
Cog › Key Bindings › Markdown
markdown.toggleAll
Collapse every section if any is open, otherwise expand them all.
Default: Ctrl+M,L · Scope: Editor · Preview
Collapse this section
Cog › Key Bindings › Markdown
markdown.collapseSection
Collapse the section containing the caret (editor) or the top of the view (preview).
Default: Ctrl+M,S · Scope: Editor · Preview
Collapse the current section.
Expand this section
Cog › Key Bindings › Markdown
markdown.expandSection
Expand the section containing the caret (editor) or the top of the view (preview).
Default: Ctrl+M,E · Scope: Editor · Preview
Expand the current section.
Collapse all sections
Cog › Key Bindings › Markdown
markdown.collapseAll
Collapse every heading section.
Default: Ctrl+M,A · Scope: Editor · Preview
Collapse every section, at every level.
Expand all sections
Cog › Key Bindings › Markdown
markdown.expandAll
Expand every heading section.
Default: Ctrl+M,X · Scope: Editor · Preview
Expand every section, at every level.
Collapse all inside this section
Cog › Key Bindings › Markdown
markdown.collapseAllInside
Collapse every section nested under the current one, leaving that section itself open.
Default: Ctrl+M,Shift+S · Scope: Editor · Preview
Collapse every section nested under the current section, leaving the current section itself open; the rest of the document is unchanged.
Expand all inside this section
Cog › Key Bindings › Markdown
markdown.expandAllInside
Expand the current section and every section nested under it.
Default: Ctrl+M,Shift+E · Scope: Editor · Preview
Expand the current section, even when it is collapsed, and every section nested under it; the rest of the document is unchanged.
Every row of the editor's Outlining menu shows its key. The two All inside chords are their section chords with
Shift added to the second key: hold Ctrl, press M, then Shift+S. In an editor of any other language Ctrl+M keeps
the editor's own meaning. Whether a document opens
with its sections expanded or collapsed is Markdown sections open.