A feature similar to Visual Studio's "Compress blank lines" and "Compress lines that do not have alphanumeric characters" options (Syntactic Line Compression) would be very beneficial for improving scanability. Especially with agentic coding, where frequent reviews of large blocks of code is necessary.
Ideally, this would introduce a setting like editor.adaptiveLineHeight or editor.syntacticLineCompression that dynamically reduces the font size/line-height by a configurable percentage (e.g., 25–40%) only for lines that contain zero alphanumeric characters.
For example:
- A line containing code like
int x = 10; renders at standard editor.lineHeight (e.g., 22px).
- A line containing only a trailing
}; or a blank spacing line automatically renders at a compressed height (e.g., 14px).
A feature similar to Visual Studio's "Compress blank lines" and "Compress lines that do not have alphanumeric characters" options (Syntactic Line Compression) would be very beneficial for improving scanability. Especially with agentic coding, where frequent reviews of large blocks of code is necessary.
Ideally, this would introduce a setting like editor.adaptiveLineHeight or editor.syntacticLineCompression that dynamically reduces the font size/line-height by a configurable percentage (e.g., 25–40%) only for lines that contain zero alphanumeric characters.
For example:
int x = 10;renders at standard editor.lineHeight (e.g., 22px).};or a blank spacing line automatically renders at a compressed height (e.g., 14px).