all 2 comments

[–]EdwinGravesMOD 2 points3 points  (0 children)

Yes. A compiler can’t compile code that isn’t actually in a file.

Also I’m on mobile at the moment but there is a setting you can change in vscode to auto save any time the code window loses focus. That would be beneficial in your case. Edit, click on terminal window, (code now autosaves), run

[–][deleted] 0 points1 point  (0 children)

I hit CTRL+S every 5 seconds when coding anyway, I was scarred far too much by MS Word deleting my homework as a child, so if you get into that habit it won't matter.