Skip to content
Advertisement

Tag: vscode-snippets

Execute function in vscode snippet

Is it possible to run a function during expansion of snippet? javascript.json – vscode snippet file: index.js – project file: The obvious reason might be snippet is a json file, it’s not a javascript file so it can’t run code, just show syntax as it with cursor positions $1, $2 etc. Or is it possible through a vscode plugin? Answer

Advertisement