Projecting the In- class demo screen I want to do an in-class demo for students.
I am wondering if there's a way I can project my code editor for students to see, and still have a document with written code (like a cheat sheet) which only I can see.

Please suggest how this might this be done
Assuming you have a standard projector, here are two ways that I do this:


A printout.  Nothing like going old-school and having physical paper in front of you.  Your students can't see what you've got written down. As a side benefit, you can comment in notes about things to say.  Want to code in some errors and then fix them to make a point? It's easy to document a process this way.
Set your laptop to use dual-monitors, and use the primary as your laptop screen. And the secondary as your projector screen.  A side benefit here is that the text doesn't get as difficult to read on the projected screen.  A challenge is potentially having to turn your head when typing.