You can try the Text Macros for Visual Studio 2012-2019 extension (I am the author). It basically does the same thing as the Notepad++ macros (text editing, no UI automation).
The code is open source (GitHub), so feel free to contribute improvements 🙂