F12 no longer works in Visual Studio

Viewed 77362

This is driving me crazy. Ever since I installed ReSharper 4, F12 no longer seems to work. If you look at the all the ReSharper short cuts in the Goto sub menu Declaration doesn't have any assigned!

The only way I can go to declaration is by using Alt and ` and then selecting Declaration.

I have tried un-installing and re-installing ReSharper with no luck, I have also, in ReSharper option asked it to use the default Visual Studio Key Bindings but that doesn't to work either.

Interestingly, when I do use Alt and ` I actually get two entries for the Declaration option.

Has anyone come across this problem?

I am using Visual Studio 2005 SP1.

17 Answers

I have had a few occasions where Resharper and Visual Studio keybindings got mixed up and I had problems sorting them out.

If it is only one or two bindings you care about then you can change them by going to the

Tools->Customize->Keyboard menu option.

I had this problem and it was resolved by following the steps described in the picture:

Open Visual Studio Tabs on the path: Tools>>Options>>Keyboard

enter image description here

Open Visual Studio Tabs on the path: Resharper>>Options>>Keyboard & Menus and Do the following:

enter image description here

And Then Reopen the path above and do the following:

enter image description here

Finally, close the Visual Studio and open it.

Try simple way to enable it, press Fn + Esc key of the keyboard.

My problem was that I couldn't use the command "Alt + F12" when trying to "peek definition" in Visual Studio. I found out through another forum-thread that it was Nvidia's GeForce Experience that overrides some of the "Alt" shortcuts and uses them for their functionalities with screen recordings etc.

What solved it for me, was going into the GeForce Experience settings and switch off the use of in-game overlay:

enter image description here

Alternatively, if you want to use the overlay, you can just change the short cut commands.

For ReSharper Ultimate 2017.3.3 and Visual Studio 2017: Tools > Options > Tools > External Sources > Default Visual Studio Navigation > Saveenter image description here

"Web Essentials" Add or update visual studio "Web Essentials" You can find it at: Menu>>Tools>>Extensions and Updates

I hope this will save your time. It worked for me.

Web Essentials

ReSharper added a crap 'good' new thing that they now call a feature: Smart Go To Declaration. As dumb as it may sound, it comes enabled by default: crap 'good'.

The feature is described on the link provided from here but honestly at least it should've keep it disabled, not reinvent the wheel. It also tells you how to disable that crap 'good' feature.

Sometimes it has noting to do with Visual Studio at all. Be sure your keyboard has its function key setting of the keyboard itself to send the F12 function to Visual Studio. It is an easy thing to miss.

I had just installed Pulover’s Macro Creator and F12 was set as the global hotkey to pause a macro. It was intercepting the keypress before it had a chance to get to VS.

Solution is to change that hotkey to something else. I chose Ctrl-F12. The input box is on the top right of the Pulover window.

After changing the hotkey

Update 2020. I had the same problem and also tried a lot of ways, but that was still didn't working... [VS 2015, ReSharper 2019.3.1] But, like Andrius said: Resharper -> Options -> Environment -> General -> Clear Caches. This needs VS to be restarted, but then it started working as expected.

Summary is: (try steps above) + Resharper..-> Clear Caches + VS restart. Hope this will be useful

Related