Change shortcut for 'switch to markup' in

2020-05-18 03:35发布

问题:

How do I switch the shortcut for 'toggle to markup'?

Shift + F7 is toggle to designer.

In Visual Studio 2008 I can toggle between the code-behind and the markup with F7. I got used to it and want to have the same shortcut in Visual Studio 2010 Beta2. How can I achieve that?

回答1:

In 2008 you could go into Tools --> Options --> Keyboard and in the Press Shortcut keys field you could type a shortcut and it would tell you what its currently mapped to.

In 2008 its mapped to View.ToggleDesigner.

Once you know what its mapped to, type it into the Show Commands containing field, and it will filter your list down.

I don't have 2010 on this computer, so I cannot verify if you can do the same in that version.



回答2:

I found a possible solution: Tools -> Import & Export Settings -> Reset settings to default -> Web Developer Settings.

That indicates that it's possible to change the shortcut. Still, does anybody know where to change it in the settings directly?