I know exactly what kind of frustration you mean. I think this frustration often comes about, because writing code up is a first quality control and it might seem unnecessary for straight forward stuff to be quality controlled.
While spending less work on trivial stuff seems reasonable, if I do introduce a bug in trivial code it will be harder to track it down, because I will always first check whether or not all the tricky parts work. On top of that you indirectly incentivize yourself for thinking something is trivial, because it would mean less work and somehow my brain is very good at tricking me into doing less work in situations where obviously more work is required.
So, even if it was possible to paste code from the brain I would recommend reading it again carefully and then the speed advantages are gone. The only situation where you wouldn’t need it are really repetitive tasks, but in these situations you can have macros/snippets.