Visual Studio 2017 - General Settings Question

Hey guys, I am new to programming and I have been coding on Visual Studio 2017 for abit now but I have some questions.

1) Whenever I debug/build it always saves the project. Lets say I am just messing around with code and trying out different things and I debug. It will save and I will lose my old code. - How can I fix this? Is there a setting to stop saving on build?

2) Another question, lets say my project name is Game 1. Inside the project is my main.cpp . How do I save different copies of my progression? Do I just save it as main.cpp and then next progression main2.cpp, then main3.cpp? Like different versions. Or will I need to make a new folder?
Is there a setting to stop saving on build?


No. That's effectively impossible. The compiler is a completely different program. It is a separate executable that runs in a different process. It needs to read your code, which it can only read from a text file. So if the file hasn't been saved, the compiler literally cannot read your code. How could it?

How do I save different copies of my progression?

You are asking "What is version control?" Software engineers use tools to do exactly what you're asking. The current most popular tool is known as "git". Now you have the right keywords to do a google search and start learning about it.
Topic archived. No new replies allowed.