Ah, I checked there seems to be an extension that lets you write macros in a JSON file: https://marketplace.visualstudio.com/items?itemName=geddski....
But there seems to have been no movement on this request for a functional macro feature: https://github.com/Microsoft/vscode/issues/4490