Skip to content

Watch: copy value should respect multi selection #114353

Closed

Description

During debugging there is the option to copy the value from a watch variable. VSCode by default allows to inspect arrays. I can select with shift click a range of values within the array and they are highlighted. Pressing 'copy value' however, will only copy the value of the array that the mouse is hovering. It could be nice that if several values are highlighted all those values are copied into the clipboard.

image

As a use case, I work with numerical methods and exporting those vector values to excel allows me to quickly validate that some operations are computed correctly, evolution of values during the solving phase, etc.

Moreover, from the point of view of UX, in my humil opinion, it makes more sense that if multiple values are highlighted, all of them are copied to the clipboard, separated by \n.

Just a small suggestion,
Thanks in advance,
vscode is awesome

Activity

  1. added
    debug
    on Jan 14, 2021
  2. added
    feature-request
    on Jan 14, 2021
  3. isidorn commented on Jan 14, 2021

    @isidorn

    Constan Gomez (@illegal-instruction) this feature request makes sense.
    I guess you would expect that each value is followed by a new line to distnguish between them?

    This is doable, assigning to next milestone to look into it then.

  4. changed the title [-]Copy value of arrays during debugging from watch variables[/-] [+]Watch: copy value should respect multi selection[/+] on Jan 14, 2021
  5. illegal-instruction commented on Jan 14, 2021

    @illegal-instruction
    Author

    Isidor Nikolic (@isidorn) Yes, I suggested new line because it seems reasonable as it copy pastes well to excel and notepad and it resembles the structure you are 'seeing' in the screen.

    Thanks for answering so fast

  6. isidorn commented on Jan 14, 2021

    @isidorn

    Adding help wanted in case somebody from the community wants to help here.

    Code pointer

    const debugService = accessor.get(IDebugService);

    The command should be changed that as arguments it gets an array of selected expressions. Might be a bit tricky for first time contributors to get 100% right.

  7. added
    help wanted
    on Jan 14, 2021
  8. jeanp413 commented on Jan 15, 2021

    @jeanp413
    Contributor

    I'll work on this

  9. added a commit that references this issue on Jan 15, 2021
    746c455
  10. added
    verification-needed
    on Jan 15, 2021
  11. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 15, 2021
  12. added
    verified
    and removed
    verification-needed
    on Jan 26, 2021
  13. added
    on-release-notes
    on Jan 29, 2021
  14. locked and limited conversation to collaborators on Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-requesthelp wantedinsiders-releasedon-release-notesverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions