Copy path to variable same as in phpstorm?
Hello,
Does pycharm has this ability? right clicking on variable in PHPSTORM would give you an option to select 'copy path' to this variable and thus helping you access variables inside objects or array easily.
Thanks.
Please sign in to leave a comment.
Hi,
I don't think there's such feature in PyCharm. Could you shown an example of what do you expect to be copied?
Example:
$atest_arr = array('Name' => 'test', 'Age' => 'test');
if I want to copy the path to 'Age' value:
And then if I'll paste it I'll get the path to 'Age' value:
Thanks,
Unfortunately there's no such feature in PyCharm, Please feel free to submit a feature request to our issue tracker at https://youtrack.jetbrains.com/issues/py , and let us know if you require any help.
Thanks Andrey
Workaround: try right clicking the variable and clicking Evaluate Expression, the box will be prepopulated with the path (I am on 2021.2.4)