-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
I'm using this extension from 8 months, but I think from last VS code version 1.37.1 my macro doesn't work anymore.
${CLIPBOARD} is not replaced anymore from selected text. In some case all snippet is pasted replacing all document text instead insert it after the newline.
Anyone can help me?
settings.json
`
"macros": {
"printr": [
"editor.action.smartSelect.grow",
"editor.action.clipboardCopyAction",
"editor.action.insertLineAfter",
{
"command": "editor.action.insertSnippet",
"args": {
"name": "customprintr",
"langId": "php",
}
},
"editor.action.insertLineAfter",
"editor.action.clipboardCopyAction",
]
},
`
snippets/php.json
`
"customprintr": {
"prefix": "customprintr",
"body": [
"\t",
"\t echo '<pre style=\"text-align:left\">';",
"\t \\$printMe = ${CLIPBOARD}; print_r(\\$printMe);",
"\t echo '</pre>';",
"\t die;",
"\t",
"\t"
],
"description": "Insert custom print_r"
},
"br": {
"prefix": "br",
"body": ["<br />"]
}
`
borsboom
Metadata
Metadata
Assignees
Labels
No labels