Normally, in VSCode, you need to press <Enter> <Ctrl-Z> <Enter>
to create an EOF character. However, I’d like to write an EOF without having to create a newline. Is this possible?
I’ve tried just pressing <Ctrl+Z>
, but it doesn’t give me an EOF – neither does <Ctrl+Z+Enter>
. Therefore, when I run, for instance, a C program, it detects an extra character before the EOF that I did not intend to input.
6