Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut keys not working in Visual Studio 2012

Having problem with the shortcuts for MVC specifically in VS2012.

The key combination (CTRL+M, CTRL+G) is bound to command (Go To View) which is not currently available.

But for example Refactor->Rename work.

  • Disabling ReSharper doesn't help.
  • It works in VS2010, but not in VS2012.

I have looked at the related question: Shortcut keys not working (Visual Studio 2010 with ASP.NET MVC 3 RC1)

Had that problem previously in VS2010, and the accepted answer solved that problem.

like image 723
MatteKarla Avatar asked Aug 29 '12 08:08

MatteKarla


1 Answers

I had this problem too. The problem was with the project file and this worked for me:

  1. Create a new MVC project (you can use the Basic template)
  2. Open the newly created project file and copy the <ProjectTypeGuids> element
  3. Open the project file giving the problem and replace its <ProjectTypeGuids> element
  4. Reload the project and it should work.
like image 129
Ryan Gilkes Avatar answered Nov 15 '22 04:11

Ryan Gilkes