vscode-php-debug icon indicating copy to clipboard operation
vscode-php-debug copied to clipboard

Copy variables not really working well

Open flip111 opened this issue 5 years ago • 6 comments

In the "Variables" pane where all the variables are listed in local scope (and a bunch of other scopes), when i have an array there and right click Copy Value i get

array(42)

When i click Copy as Expression i get

$forum_data_ary

These two options are somewhat useful. The "copy as expression" is more useful than "copy as value" though. Instead of just these two options could the following there be the following entries in the right click menu:

Copy as PHP (copies runnable PHP code to construct the variable)
Copy as JSON (copies JSON representation of variables)
Copy name (new name for "copy as expression")
Copy type  (new name for "copy as value")

Please put upvotes on https://github.com/microsoft/vscode/issues/188604 as it blocks this ticket. See screenshot below on how to do an upvote

image

flip111 avatar Apr 17 '20 15:04 flip111

Related to #917 but does not solve the issue, as currently one one option is possible, not a list of options. Opened an issue with VSCode.

zobo avatar Jul 23 '23 07:07 zobo