Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.45 KB

editor.foldingStrategy.md

File metadata and controls

28 lines (19 loc) · 1.45 KB

editor.foldingStrategy

The setting editor.foldingStrategy is extended to use the folding ranges provided by only one extension.

For example, if you are using the extension Explicit Folding:

Traditionally, VSCode is using the folding ranges provided:

  • by the folding range provider defined by the setting editor.foldingStrategy (auto or indentation)
  • and by the folding range provider defined by that extension if editor.foldingStrategy is set to auto

With MrCode, it's using the folding ranges provided:

  • by the folding range provider defined by the setting editor.foldingStrategy (auto or indentation)
  • or by the folding range provider defined by that extension if editor.foldingStrategy is set to explicit

Composite strategy

editor.foldingStrategy can combine differents folding range providers with the operators & and |:

  • language | indentation: folding ranges from a language provider or, if none found, from the indentation provider
  • explicit & indentation: folding ranges from the explicit provider and from the indentation provider

editor.foldingStrategy supports only identical operators:

  • language | explicit | indentation is valid
  • language | explicit & indentation isn't and will be defaulted to auto.

auto becomes an alias for language | indentation.