The latest Gmail update for Android and iOS addresses this hassle by placing a "Copy code" button directly in the main inbox.
Learn how to use and take advantage of the Routines+ module to improve One UI automation on your Galaxy, with Just In, Touch Macro, and more.