开发者

F7 in Visual Studio 2010 - What is the opposite?

开发者 https://www.devze.com 2023-02-13 05:29 出处:网络
Wh开发者_开发问答en I am viewing an aspx page in Visual Studio 2010 I can hit F7 and it then opens the codebehind.Is there an input gesture I can use to bring me back to the aspx frontend code?Shift +

Wh开发者_开发问答en I am viewing an aspx page in Visual Studio 2010 I can hit F7 and it then opens the codebehind. Is there an input gesture I can use to bring me back to the aspx frontend code?


Shift + F7 does the reverse (but it annoyingly goes to Design view, so you have to push F7 twice while holding shift to get to Source).

Here is a listing of default keybindings.


  1. Set The Open Options From Tools in Visual Studio:
    Tools > Options > HTML Designer (Left Navigation)
    Then make sure "Enable HTML designer" is Checked Then select "Source View" from "Start pages in".

F7 in Visual Studio 2010 - What is the opposite?

  1. Set the toggle shortcut
    Tools > Options > Keyboard
    Search for "View.ToggleDesigner" in "Show Commands Containing"
    Add new shortcut to "Global" with F7.

F7 in Visual Studio 2010 - What is the opposite?


Well the tag is Visual Studio so I will add

what F7 does depends on your designer settings; if you have C++ settings, F7 builds your project(s).

You can get Visual Studio 2010 Keybinding Posters from here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=92ced922-d505-457a-8c9c-84036160639f


F7 goes back and forth for me.

Shift + F7 toggles between design and source views on the ASPX.


If you want F7 do the same thing as Shift+F7 just follow this http://www.mortenbock.dk/blog/2010/11/12/f7-broken-in-vs2010.aspx


In Visual Studio 2013 (not sure about earlier versions) it works like this:

In Designer

F7 - Takes you to Code Behind

Shift + F7 - Toggles between Design and Source views

In Code Behind:

Shift + F7 - Takes you to the Designer (Note: The Designer will be in Design view. So, you will need an extra shift+7 to get to Source View)


Shift + F7 is so horribly slow since you have to go through the design view.

I Do: Ctrl + [, Ctrl + S, Up, Enter which is much much faster once you get used to it.

If you're like me and hate loading the sluggish design view for the front end the above hotkey + 2 inputs is better/faster than Shift + F7.

Ctrl + [, Ctrl + S - Shortcut for Sync with Active Document, i.e go to the current file in the solution finder. Then just hit up and enter and you're in the file you want!

0

精彩评论

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