Workaround (on windows in Chrome Browser): select all the code, right-click, print. In the print preview you can select all the code and you can copy it from there.
This is not a bug, but an intentional function.
Copying is a standard OS & Browser function. And you need to take some actions (in javascript) to prevent its work.
Some not too smart person thinks this is for good or just sabotages.
absolutely ridiculous, this is a bug and there is no other way about it!
does not work in incognito too, copying and pasting a new text file thinking is a windows problem or something, such a time waster, hate it