Last post Aug 28, 2013 05:17 PM by ottenm
Aug 26, 2013 11:27 AM|ottenm|LINK
In VS 2010 under Tools > Options > Environment > Keyboard
... I see where I can remap keys to different functions. I'm looking for a way to re-map F5 so it kills off the current debug session, and rebuilds the app (asp.net), and restarts the app in debug mode.
Any suggestions? The list of command options is pretty long in there.
Aug 26, 2013 04:33 PM|stmarti|LINK
In vs2012 we have ctr+shift+f5 for restart. Maybe it works also in vs 2010. The command name Debug.Restart if you still want to re-map F5 (not recommended)
Aug 26, 2013 04:36 PM|MetalAsp.Net|LINK
Your best bet is going to be to record a macro that includes all these steps. Then you can assign the key of your choice to this macro.
Aug 26, 2013 04:36 PM|Rion Williams|LINK
I know that Visual Studio 2012 uses CTRL+SHIFT+F5 to automatically handle restarting the actual running application (assumingly in the mode that it is currently running in).
I'm not sure if the same functionality is present within Visual Studio 2010, but it might be worth trying out as opposed to replacing the existing F5 functionality.
(Update: based on the Stack Overflow thread, it should also work within Visual Studio 2010)
Aug 28, 2013 05:17 PM|ottenm|LINK
Boss!! Thanks a ton! Using Ctrl-Shift-F5 instead of re-mapping.