Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcuts starting with Alt don't work in VS

Keyboard shortcuts which start with Alt (such as Peek Definition Alt+F12) stopped working on Visual Studio 2015.
When I press Alt key, those underscores appear under menu items (which is default behavior of windows) as shown on image

enter image description here

Other keyboard shortcuts such as F5, and all the ones starting with Ctrl are working properly.
I've found a lot of answers about keyboard shortcut conflicts after installing ReSharper, but I haven't installed it.
Any suggestions?

like image 509
Just Shadow Avatar asked Mar 19 '17 09:03

Just Shadow


People also ask

Why are my Alt shortcuts not working?

Keyboard shortcuts could fail to work if you don't press the key combinations at the same time. If you are having difficulties pressing multiple keys at the same time, you should enable Sticky Keys. This Windows 10 feature allows you to press the shortcut keys one after another.

How do I enable shortcut keys in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.

How do I unlock alt tab?

Make sure you have enabled the App Switching feature Press Windows + I to open Settings, then click on System. Choose Multitasking from the left, and then select the desired option from the two drop-down menus about Alt-Tab.


2 Answers

In my case it was Nvidia's "In-Game Overlay". In case you are running this software, try disabling this in the "Geforce Experience".

The image below shows where to do this: enter image description here

like image 197
TommieBommie Avatar answered Oct 13 '22 02:10

TommieBommie


After long troubleshoting and googling I've combined multiple things and it worked:

  1. Updated the Visual Studio

  2. Resetted keyboard layout with following steps:
    2.1. Make sure you have no additional keyboard and displays connected (this could be optional step, but without this the solution was not working for me)
    2.2. From menu open "Tools" and select "Options"
    2.3. From left side select "Environment" and click on "Keyboard"
    2.4. Change the mapping scheme to "Default"
    2.5. Click on "Reset" (You'll be promted something then click on "Yes") and OK
    2.6. And now restart the application enter image description here

  3. Also by the way installed ReSharper and uninstalled (this also plays keyboard shortcuts of Visual Studio) and retried second step

like image 38
Just Shadow Avatar answered Oct 13 '22 02:10

Just Shadow