## 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 shortcut keys** entry box, press **F7**. * Select **Assign > OK** ![tutorials ](~/tutorials/razor-pages/razor-pages-start/_static/F7.png)