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 in the specified location. If the new copybook is not saved in the project directory, the full path to the copybook is also added to the Copybooks or the Dependency Paths tab in the project's properties