Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to toggle between Markup and Code-behind

In vs2012, the f7 key toggles between the Markup and the Codebehind of aspx/ascx/masterpage files. Vs2013 used to behave the same way before I reinstalled my system. Now it will only go from Markup to Codebehind but never the other way. I can get it to switch to the HTML Designer but I'm not interested in that.

I tried to fix it with no avail. Here were my steps:

  1. Create a brand new Webforms project to ensure that corrupt aspx and aspx.cs files were not the root of the problem.
  2. Goto Tools > Options > Enviroment > Keyboard; there I set unique key bindings for ViewCode, ViewMarkup, and ViewDesigner.
  3. Goto Tools > Options > HTML Designer and check off "Enable HTML designer" and "Auto keyboard switching";
  4. Restart Visual Studio

I also tried importing my Keyboard settings from VS2012 into VS2013.

like image 502
sparebytes Avatar asked Nov 02 '22 09:11

sparebytes


1 Answers

I decided to import ALL of my settings from VS2012 instead of just the keyboard shortcuts and that solved the problem. This at least shows it is possible.

like image 174
sparebytes Avatar answered Nov 08 '22 03:11

sparebytes