I use MZ-tools in my VBA IDE. It allows this kind of functionality (along with a lot of other cool things)
When you get it installed you will want to create a Code Template. Go to
Tools > MZ-Tools > Options > Code Templates
Add...
a new template like so:
OK > OK
No in your IDE press Ctrl+1 and out pops
Debug.Print "This is creating a line of code from a shortcut key"
You can use variables in this template too if you want to get fancy.