Javascript – How can I create VS Code snippets that consume pre-existing text placed before the snippet prefix and use it in the snippet body?
I want to make snippet for console.log(variable) but instead to have prefix I want to make this with "suffix". Here's an example: var name = "Marco"; var car = "Volvo"; name.log > TAB > console.log(name); When I write my variable…