No need to manually type your boilerplate code or user defined snippets in vs code. Use CodePedia extension to automate your very own boilerplates.
File Saving in the user snippet location- we got over it by specifying the location using nodejs fs module.
Setting up the vs code extension- went through the vscode documentation to solve the issue.
Converting the user input code to vscode user snippet- used python string methods.
Discussion