views:

403

answers:

3

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

shift + f7 is toggle to designer.

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

A: 

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?

citronas
+2  A: 

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.

Brian Schmitt
Thanks man, you are a genius.Tools -> Options -> KeyboardI modified the mapping so that I have the following mappings bound:View.ToggleDesigner(F7 (Global))View.ViewCode (F7 (Settings Designer))View.ViewMarkup (F7 (View Designer))
citronas
A: 

Thanks citronas, that did the trick! It WOULD be nice to set i directly though. Couldnt make it work in any of the other ways mentioned.

(I would mark your answer as useful if I had reputation enough.. =)

HellRat
Glad that I could help you. You might consider upvoting If you gained enough rep =)
citronas