Visual Studio Code – How can I create snippet that adds text and makes an edit to the file in another location
I wrote this snippet and I'm looking for a way to edit the import line at the head of the file and add the correct additions to Component class. "Angular Lifecycle Hooks": { "prefix": "nglifecycle", "body": [ "ngOnChanges() {", "t//…