I try to increase my productivity by
using a small
note manager to order
and keep functions for re-use (on win32). So I mostly start coding with a session of excessive c/p-ing and connecting things together.
I just use a text - editor for coding (vim / proton for links check my
homenode).
neophyte
update: Of course I don't c/p big functions, more sort of snippets like a frequently used regex or assigning a german layout to a date. With bigger functions you might end up spending more time adapting it to what you really need than writing it from scratch would have taken.