Folding sections works well in VS Code, but would someone know whether there is an extension that allows folding footnotes? I typically do this in VS Code:

Here is some text.\footnote{
reference text
And here the next sentence continues.

This results in the footnote being indented and a vertical structuring line being put in front of it. So, my question is whether there is a VS Code extension that can fold these indented parts (whether it is a footnote or blockquote).

  • Could you tell me what Visual Studio Code extensions you recommend as the TeX editor? Commented Jun 2, 2020 at 15:12
  • 1
    Next to the obvious LaTeX Workshop and Fold Plus (or Fold Level), Bracket Select is quite helpful. I think the Cobalt2 and Community Material Theme make the most sense for tex code. Commented Jun 3, 2020 at 17:06
  • Thank you very much! Commented Jun 3, 2020 at 17:18

1 Answer 1


I think I have found an answer. Because this may help others with the same question later: the Fold Plus extension allows one to switch between 'language folding' and 'indentation folding'.

By default, VS Code folds based on language, which is why the Fold command folds (for instance) all sections. By choosing 'Toggle Indentation/Language Folding' through the Command Palette in VS Code, one can activate folding based on Indentation.

Depending on whether one puts the opening bracket { on a new line or not, the folding sign is put either next to that { or at the start of the paragraph. See the screenshots below:

Option 1 - Inline code folding LaTeX footnotes in VS Code with Fold Plus

Option 2 - Inline code folding LaTeX footnotes in VS Code with Fold Plus

  • Btw, you can accept your own answer to the qn.
    – silvergasp
    Commented Jun 11, 2021 at 6:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .