You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Watch: copy value should respect multi selection #114353
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesverifiedVerification succeeded
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.
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
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.
changed the title [-]Copy value of arrays during debugging from watch variables[/-][+]Watch: copy value should respect multi selection[/+]on Jan 14, 2021
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.
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.
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesverifiedVerification succeeded
Activity
isidorn commentedon Jan 14, 2021
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.
[-]Copy value of arrays during debugging from watch variables[/-][+]Watch: copy value should respect multi selection[/+]illegal-instruction commentedon Jan 14, 2021
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
isidorn commentedon Jan 14, 2021
Adding help wanted in case somebody from the community wants to help here.
Code pointer
vscode/src/vs/workbench/contrib/debug/browser/variablesView.ts
Line 397 in 7a9bb5a
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.
jeanp413 commentedon Jan 15, 2021
I'll work on this
Respect multi selection when Copy value in Watch Expression View. Fix m…