Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rebind a key to "Continue" command other than F5 in Visual Studio?

In Visual Studio, F5 is used for both of StartDebugging and Continue, which is rather annoying. Because many other IDEs/Debuggers don't act in the same way, e.g. cgdb, IntelliJ IDEA.

For simplicity and universality, I want to use one key-binding scheme for all IDEs/Debuggers. I cannot change other IDEs/Debuggers to bind both of StartDebugging and Continue to F5.

So, my question is:

Is there a way to separately bind StartDebugging and Continue to different keys in Visual Studio?

like image 274
xmllmx Avatar asked Jan 05 '15 01:01

xmllmx


People also ask

How do I change key bindings in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.

What is F11 in Visual Studio?

F11 -> Execute code one statement at a time, following execution into function calls (Step Into).

How do I change keyboard shortcuts?

Use a mouse to assign or remove a keyboard shortcutGo to File > Options > Customize Ribbon. At the bottom of the Customize the Ribbon and keyboard shortcuts pane, select Customize. In the Save changes in box, select the current document name or template that you want to save the keyboard shortcut changes in.


1 Answers

The command you're looking to change is called Debug.Start

This link describes how you can remap commands to different keys:

http://msdn.microsoft.com/en-us/library/5zwses53.aspx

Debug.Start is the same command for both Run and Continue, so you cannot map the action to different keys.

like image 186
stugray Avatar answered Oct 22 '22 00:10

stugray