Changes Not Showing in Source Control
For a few days i was wondering why visual studio didn’t save my code and display it in source control panel. Since I had other problems with the project codes before, I deleted VScode from the computer and reinstalled it. I’ve searched in many places to find out why my changes aren’t showing up in source control.
My solution is not about trying git command or stackoverflow comments if you have deleted and reinstalled VSCode before and you want to see the changes you have made in the source control panel, the first thing you need to do is to check the Auto Save setting from the VSCode settings.
How can I find this settings ?
All you have to do is to edit the Autosave settings from the settings. You can change the default feature. You will have 3 options for this. But first, let’s go to the Autosave settings page.
MacOS
Code -> Preferences -> Settings -> Type Auto Save on Search Bar and apply settings like screenshot on top.
Windows
Manage Button in Bottom-left-> Settings -> Type Auto Save on Search Bar and apply settings like screenshot on top.
Linux
Manage Button in Bottom-left- -> Settings -> Type Auto Save on Search Bar and apply settings like screenshot on top.
Apart from the afterDelay option, you have two more options. These are onFocusChange and onWindowChange. You can adjust the setting that suits you.
In summary sometimes a simple change can help you solve your main problem :) Now you can safely push your codes , happy coding !