For debug you have F5, for build you have F6, but what about Clean Solution?
I have a database app and I have to clean solution before I debug or it will cache with previous data. A hot-key will make life easier.
To build, rebuild, or clean an entire solution Choose Build All to compile the files and components within the project that have changed since the most recent build. Choose Rebuild All to "clean" the solution and then builds all project files and components. Choose Clean All to delete any intermediate and output files.
Choose Rebuild Solution to "clean" the solution and then build all project files and components. Choose Clean Solution to delete any intermediate and output files. With only the project and component files left, new instances of the intermediate and output files can then be built.
For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel).
The keyboard shortcut combinations are sometimes dependent upon the profile settings you chose when you first installed Visual Studio. For example, you can customize the environment for a VB.NET programmer (which simulates previous versions of VB), for a C++ programmer (which simulates previous versions of Visual C++), or for a C# programmer (not really sure what that does).
That being said, I don't think any of the default profiles set up a keyboard shortcut for "Clean Solution".
However, it's easy to set one up yourself, if you use this feature frequently enough to justify having one:
CleanSolution
into the text box labeled "Show commands containing:".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With