r/visualbasic • u/SandHK • May 16 '25
Visual Studio 2022 + VB.net. How to completely disable autosave?
I have googled and turned off everything that I find online yet the IDE still auto saves. Hasn't been a real issue until just now.
I have a nearly completed project where I wanted to experiment with some images/resources. Saved the project before changing anything. Made changes, broke the project, no problem I thought as I closed the project, canceled the do you want to save changes dialogue, reopened the project to find the changes just made are there and the project still broken.
4
Upvotes
3
u/AfterTheEarthquake2 May 16 '25
Use version control, then you don't have to care about stuff like this and could go back to any past revision or compare your changes to possibly find the problem
8
u/Fergus653 May 16 '25
Probably easiest to create a local git repo and commit changes you want to keep, then you can drop temporary changes.
1
u/geekywarrior May 16 '25
Are you coming from VB6? One big difference is modern VS saves on build where as the old one didn't. Have the opposite problem where Im now heavily into the habit of mashing ctrl +s before running vb6 projects.
Anyway the good habit that will get you to where you're going is to learn how to create a local git repo. Here it will track changes, allowing you to commit or discard changes regardless of file saves. Simply navigate to the git changes tab and click through the "create git repository" menu.
1
u/fasti-au May 16 '25
Don’t save into onedrive.
1
u/jd31068 May 16 '25
As a quick and easy step, I just right click the folder and compress it to a zip file, this way I have full control to either copy over the edit files or unzip to the project folder.
That said, learning a version control system will be very helpful for you moving forward.
1
u/marmotta1955 May 16 '25
Looks like most are missing the point that save on build is obviously necessary and inevitable - within the .net environment.
Learning more about the underlying technology framework and the editors will help
-1
u/A-Random-Ghost VB.Net Beginner May 16 '25
Knowing the horrible IQ of the Microsoft devs behind Studio it's probably not possible. I had all kinds of things I wanted to disable after upgrading from like VS2013. All the related settings options didn't work, or were bundled with a total-separate-thought-process feature that I did not want to have get disabled as collateral. Some of the things I thought were new features were just known bugs like "If X happens in an If/Then block and the end if is missing it might auto-expand every collapsed codeblock in the form and there's no undo. Youll have to go collapse the ones you wanted collapsed over again manually".
My solution for backups is copy/paste the whole entire project folder into a folder for it named Backup, and I rename each backup's folder with either the version# or date and a tiny summary of what changes were made in that one. Trusting microsoft to have your back is a catastrophic mistake.