At the top of your code editor screen (where the green RUN button is) the last button after the BEAUTIFY button is the DOWNLOAD button. You can download a single file or the entire project.
Selecting code segment in the text editor, you can also copy it to the clipboard and insert it into your desktop's editor (a.k.a. copy-paste).
Does this help?