You may want to adjust things a bit as well. If you close all the
windows including the project tree *except for the code window and
then unmaximise it, you can adjust the window to have a nice view of
the code and then hit Alt Prntscrn, not just Prntscrn. This will copy
the active window to the clipboard.