In addition to what Paolo mentioned, there's also a "Macros" feature in Studio. To create a Macro:
- Browse to Studio
- Select the "Endpoints" tab
- Click the "New Macro"
- Enter a title and then save.
Macros will appear in the "Macros" section below the "Endpoints" section in the left column. From there you can view, edit, or delete existing macros. The benefit of a macro is that it can be included not only in other custom components, but also in endpoints as well. So macros are great for code that you want to share to endpoints as well.
If you don't see the "Endpoints" tab in Studio, please contact Support via the customer case portal so they can enable it for you.