Skip to content

Shrink empty lines #66468

Open

Description

Visual Studio has a nice extension called "Shrink Empty Lines" which enables the user to have empty lines and/or lines without alphanumeric characters shrunk in the editor to a specific extent. This way users can have more vertical space for their actual code.

https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.SyntacticLineCompression

image

It would be very nice to have this feature on VS Code, maybe with an extra setting to specify shrinking percentage (or just an enumeration). I would have made an extension but this is clearly something not achievable through the current Extension API.

Activity

  1. added
    editor-rendering
    feature-request
    on Jan 14, 2019
  2. vscodebot commented on Feb 28, 2020

    @vscodebot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. vscodebot commented on Mar 2, 2020

    @vscodebot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  4. creage commented on May 7, 2020

    @creage

    May I bump it please?

  5. BettyJJ commented on Feb 8, 2021

    @BettyJJ

    It would be great if this is implemented in a way that will make #98410 possible, too.

  6. SichangHe commented on Aug 19, 2022

    @SichangHe

    Any progress on this?

  7. 0009-0009-1013-986X commented on Apr 15, 2025

    @0009-0009-1013-986X

    Any progress on this?

    Steven Hé (Sīchàng) (@SichangHe), #147067 (comment) has been merged.

  8. BettyJJ commented on Apr 16, 2025

    @BettyJJ

    @RokeJulianLockhart Great! I just downloaed the latest nightly build. Where do we set the line heights?

  9. 0009-0009-1013-986X commented on Apr 16, 2025

    @0009-0009-1013-986X
  10. aiday-mar commented on Apr 17, 2025

    @aiday-mar
    Collaborator

    Hi everyone, yes the PR was merged which allows to define variable line heights in the editor. For the moment you can do this by setting decorations on the editor on a monaco editor. This logic is however not yet available to extensions (in the vscode.d.ts file). We will first test this and rolls this out definitively to the public a bit later.

  11. nightrider77 commented on Jul 31, 2025

    @nightrider77

    Any progress on this? Please...

  12. actforjason commented on Jan 20, 2026

    @actforjason

    The editor.allowVariableLineHeights option doesn't seem to have any effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-renderingfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions