16 lines
583 B
Markdown
16 lines
583 B
Markdown
|
## Use F7 to toggle between a Razor Page 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)
|
||
|
-->
|