Skip to content

Feature Request: Add two more highlighting modes for (otherwise unmodified) commented/uncommected code sections #145068

Closed

Description

@bersbersbers

When I comment out a section of code (meaning, adding or removing // or # to a bunch of consecutive lines), these lines appear twice in inline diff views (e.g. Source Control). This makes navigating this code unncessarily difficult, because I have to scroll twice as much to scroll over some section of code.

I would like if VS Code treated commented/uncommented sections in a special way - specifically, if it showed them only once and with a light-grey background (as opposed to the red and green backgrounds for deleted/added text). In addition, commented code (now inactive) could be shown in italics (which is already the case in my current theme), and uncommented code (now active) could be shown in bold.

I think this feature might greatly improve navigation of commented/uncommented code sections. It applies especially to the inline view, but I can see how it can be useful in split view as well.

Activity

  1. added
    diff-editor
    feature-request
    on Mar 17, 2022
  2. vscode-triage-bot commented on Mar 17, 2022

    @vscode-triage-bot

    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. vscode-triage-bot commented on May 7, 2022

    @vscode-triage-bot

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  4. vscodenpa commented on May 17, 2022

    @vscodenpa

    🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. locked and limited conversation to collaborators on Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    diff-editorfeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions