I am using visual studio 2010. My code is in C++ and my solution contains many projects and each project again contains multiple folders under it. Whenever I change a file it gets automatically selected in solution explorer as I have enabled the option “Track Active Item in Solution Explorer” in Tools->Options->Projects and Solutions->General. But after changing the file I have to manually select the project (this could be cumbersome as I have to scroll up and down due to many files present) and then right click on it and select “build”. Is there any other simple way to do this?
Share
You could assign a shortcut to
Build.BuildSelectionorBuild.BuildOnlyProjectGo to
Toolsmenu, thenOptions=>Environment=>Keyboardand enterBuild.BuildSelectionorBuild.BuildOnlyProjectin theShow commands containingsearch text area. Then assign two free shortcuts.Build.BuildSelectionis for building the current file;Build.BuildOnlyProjectwill build its project.I use
ctrl-shift+bto build all the solution. I hate to use the mouse for those repetitive tasks.