Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F5 stopped working in SSMS

Tags:

ssms

I am using SQLServer 2008 R2 Management Studio (10.50.2500.0) on Windows 7.

Suddenly the keyboard shortcut for execute query stopped working. The CTRL-E command still works but it's really anoying since I'm so used to F5. In the query menu the F5 command is replaced by CTRL+E.

My keyboard does not have an F-key lock button and the other F-keys are working. I have even tried using the on-screen keyboard so it's not related to my keyboard.

I think the problems started after an system update from Microsoft Update. How can i change it back? Cant find any options for remapping keys in SSMS.

like image 605
Magnus Eklund Avatar asked Oct 02 '12 10:10

Magnus Eklund


2 Answers

I had similar issue and realized it was "F Lock" key issue. Make sure your F Lock key is on.

like image 83
Farhad Avatar answered Jan 03 '23 22:01

Farhad


Try this solution: Goto folder:

C:\Users\USERNAME\Documents\SQL Server Management Studio\Settings You will see there file named like:

CurrentSettings-2011-11-28.vssettings

Find and erase there following line:

<RemoveShortcut Command="Query.Execute" Scope="SQL Query Editor">F5</RemoveShortcut>

EDIT: Don forget to restart ssms after doing the above changes

like image 21
Andrei Rantsevich Avatar answered Jan 03 '23 23:01

Andrei Rantsevich