开发者

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


  1. Go to tool-> options -> environment -> keyboard

  2. Find Viev.ToggleDesigner and set Press shortcut keys area what you want shortcut keys (i use Ctrl + Alt + 0)

  3. Then press assign

  4. 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?))

  1. Go to tools -> options (show all settings) environment -> keybord
  2. Find View.ViewCode, remove all short cut and set CTRL+Q (HTML Editor Soruce View)
  3. Find View.ViewDesigner, remove all short cut and set CTRL+Q (Global )
  4. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜