Skip to content

After last VS Code update, something doesn't works fine #53

@ottopic

Description

@ottopic

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 />"]
}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions