You can use the Extract to Copybook quick action as an alternative to the Extract to Copybook context menu command in the editor:
Note the light bulbs feature that appears in the margin:
This creates the copybook file and adds it to the project.