I'm on a Mac for this. (using ZXSP and/or FUSE 1.1.1.1)
On FUSE you can go to the MEDIA menu TAPE. From here you a virtual tape deck that you'll be recording to.
In BASIC you'll SAVE "Name" LINE 10, and your basic program will be saved to tape, auto running from line 10.
Then in FUSE go to MEDIA>TAPE to save as .TZX, or .TAP file.
FUSE also supports saving of snapshots as .z80 and .sna files.