I\'m trying to make a vscode snippet for python. Suppose I have a line of code like this:
my_var = call_some_function()
I\'d like to double
This isn't exactly what was asked for, but is close, using the $CLIPBOARD variable:
"log-clipboard": {
"prefix": "log-clipboard",
"body": [
"LOGGER.debug('$CLIPBOARD: %s', $CLIPBOARD)",
"$0"
],
"description": "Log an expression from the clipboard"
}
To use:
Pretty close.