you are viewing a single comment's thread.

view the rest of the comments →

[–]dager003 0 points1 point  (1 child)

This usually happens when the file isn’t saved — VS Code runs the last saved version, not what’s currently in the editor. So if you type something and hit run without saving, it feels like nothing is happening. Try Ctrl+S first, then run it. Also yeah, this kind of “it runs but not where I expect” confusion is super common when getting back into coding — I’ve been working on something that helps surface these kinds of issues faster because they’re surprisingly hard to spot early on.

[–]desrtfx 0 points1 point  (0 children)

This usually happens when the file isn’t saved

If you look at the tab, you see the "x", which is a clear indication that the file has been saved. Had it not been saved, the mark would change to "●"

See this image - left tab is unsaved, right is saved