Hot key for switching to aspx code in VS2010
Who does know, what is the hot key for switching from cs code to aspx code (not to designer) in Visual Studio 2010?
Thanks a lot!
F7
works for me
Go to tool-> options -> environment -> keyboard
Find Viev.ToggleDesigner and set Press shortcut keys area what you want shortcut keys (i use Ctrl + Alt + 0)
Then press assign
Then press okey try toogle between aspx and cs file with your new shortcut keys
To make rotation between "aspx.cs"(View.ViewCode) and "aspx"(View.ViewMarkup) file with one shortcut (e.g. I use CTRL+Q) I use this setting: (Switches to Source view for the current document. Available only in Design view and there for you need set View.ViewDesigner in rotation loop (does anybody know solution for that?))
- Go to tools -> options (show all settings) environment -> keybord
- Find View.ViewCode, remove all short cut and set CTRL+Q (HTML Editor Soruce View)
- Find View.ViewDesigner, remove all short cut and set CTRL+Q (Global )
- Find View.ViewMarkup, remove all short cut and set CTRL+Q (HTML Editor Design View )
That it is, pressing repeatly you can rotate between "aspx.cs"
and "cs"
,and design view.
精彩评论