locked
mapping F5 to: stop debugging, rebuild all, re-start debugging? RRS feed

  • Question

  • User607241271 posted

    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.

    Monday, August 26, 2013 11:27 AM

Answers

  • User1070236303 posted

    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)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 26, 2013 4:33 PM
  • User281315223 posted

    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)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 26, 2013 4:36 PM

All replies

  • User1070236303 posted

    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)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 26, 2013 4:33 PM
  • User-1360095595 posted

    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.

    Monday, August 26, 2013 4:36 PM
  • User281315223 posted

    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)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 26, 2013 4:36 PM
  • User607241271 posted

    Boss!! Thanks a ton!  Using Ctrl-Shift-F5 instead of re-mapping.

    Wednesday, August 28, 2013 5:17 PM