microsoft / microsoft/vscode

Add configurable minimum hidden-line threshold for fold placeholders

Open
#336,762 1 comment 0 reactions 1 assignee Claimed by @aeschli View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

When collapsing a very small folding region, VS Code displays a placeholder such as 1 hidden line.

Image

For very small folds, this **adds visual noise without providing much useful information**. I'd like to be able to configure a minimum number of hidden lines before the fold placeholder is rendered.

For example:
`"editor.foldingMinimumLines": 2`
A threshold of 0 could preserve the current behavior.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.