Crucial advice for all developers here!
Absolutely we all need to be using version control.
Sometimes I wish I had even-better version control, like in-between commits. I managed to save over a text file I was working on yesterday. It wasn’t in a git repository anyway (just my OneDrive), but I wish it had some working versions so I hadn’t needed to retype the code for 5 minutes, hahaha.
Seriously, though, this is a lesson (about version control) I wish I had learned when I started developing 20 years ago. Many projects I worked on as the solo developer could have really benefited from source control / git / whatever.
I did leave out GitLens from my new VS Code tutorial though; I found that it can be a little bit much for newbie programmers, and I haven’t reinstalled it myself lately. I think I will soon, though, because as you point it, it’s really useful for tracking down where a particular error came from.