简体   繁体   中英

Switch from design/xaml window to code file in visual studio 11 for WPF Application

What is the shortcut to switch to code file in visual studio 11 from XAML file in WPF applications.

SHIFT + F7 is working to switch from code to xaml/design mode, but couldn't find any shortcut for switching back.

I guess it was a bug. Now using Visual Studio 2012 RC and F7 works like charm.

根据预定义的键盘快捷键 ,应为F7

It depends a little on the keyboard scheme you choose, however using the general settings, in the VS11 Beta F7 takes you from the XAML designer to Code view, but there is no shortcut to go back the other way.

You need to go to Tools | Options | Keyboard and look for the View.ViewDesigner command. Then set the "Use new shortcut in" dropdown to "Text Editor" and assign Shift + F7 to the command. (Don't forget to press the assign button!)

Once done you should be able go from Code to Designer with Shift + F7 , and then back with F7 . If you want it the other way around, just change your keyboard shortcuts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM