But not in the editor, which is what I think @zelus_pudding is going on about.
This is easy in one’s app, but there’s no macro type functions in the editor.
ZP’s suggestion is very similar to other ideas like having an expressions palette, etc, where one could paste and store hard-to-build, but frequently used, expressions specific to the development of one’s app.
(Faye has a similar one that was specifically about colors, but the general case here is that the editor has no facility to let you make app-specific shortcuts and stuff that would greatly speed development in some cases.)