In the Script Editor, click on the menu button (in the top left) and select Export.
Right-click on the code, click Select All, then right-click and select Copy (or press CTRL + C).
Close that script, make a new script, then open the menu from the top-left and select Import.
Right-click in the text area and select Paste. Then click Import to see the blocks appear.