Skip to content

Ability to collapse commented code chunks with gutter toggle #2800

Closed

Description

@enzotar

Is your feature request related to a problem? Please describe.
When refactoring code, I often comment out large sections. This makes for a lot of scrolling to see the working code.

Describe the solution you'd like
Similar to how classes and functions have a collapse toggle in the gutter, I would like to collapse blocks of commented code.

Describe alternatives you've considered
I sometimes leave the function or class and only comment the content. But sometimes that is not convenient.

Additional context
The first line of the commented block could be used as the summary of the collapsed chunk. And with some visual feedback to show the collapse/more lines available

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Sep 16, 2020
  2. added
    in editorRelates to code editing or language features
    in lsp/analysis serverSomething to be fixed in the Dart analysis server
    on Sep 17, 2020
  3. added this to the On Deck milestone on Sep 17, 2020
  4. modified the milestones: On Deck, v3.16.0 on Oct 1, 2020
  5. modified the milestones: v3.16.0, v3.17.0 on Oct 26, 2020
  6. modified the milestones: v3.17.0, v3.18.0 on Nov 30, 2020
  7. modified the milestones: v3.18.0, v3.19.0 on Dec 17, 2020
  8. DanTup commented on Jan 20, 2021

    @DanTup
    Member

    This was implemented in the language server in dart-lang/sdk@b94adb2. It will automatically show up in VS Code after the next Dart/Flutter SDK releases.

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

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions