I was trying to echo value of a variable in my env variable in Windows. I successfully echoed it using this command in cmd echo %PRIVATE_KEY%
but couldn't output the value in my vscode terminal ...using the same command
CodePudding user response:
According to the documentation, this line should do the trick :
echo ${env:PRIVATE_KEY}
CodePudding user response:
{
"key": "alt e", // whatever keybinding you want
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "echo ${env:PRIVATE_KEY}"
// "text": "${env:PATH}"
},
}
Those values won't resolve unless you go through the sendSequence
command to send them to the terminal.