Where to put code for reuse?

When we write code for buttons, etc: is there somewhere in the workspace where we can store functions that can be called from anywhere?

I don’t think there is anywhere, but it would be nice if there was :slight_smile: