AspNetCore.Docs/aspnetcore/includes/RP/F7.md

18 lines
606 B
Markdown
Raw Normal View History

2018-08-23 06:17:24 +08:00
<a name="f7"></a>
## Use F7 to toggle between a Razor Page and the PageModel
To enable F7 toggling between a Razor Page (*\*.cshtml* file) and the C# file (*\*.cshtml.cs*):
* Select **Tools > Options > Environment > Keyboard**
* Enter **ToggleRazorView** in **Show commands containing**.
* Select **EditorContextMenus.CodeWindow.ToggleRazorView**
* In the **Press shorcut keys** entry box, press **F7**.
* Select **Assign > OK**
![tutorials ](~/tutorials/razor-pages/razor-pages-start/_static/F7.png)
<!--
![preceding instructions](~/includes/RP/_static/F7.png)
![_static/F7.pngs](_static/F7.png)
2018-08-23 06:17:24 +08:00
-->