Search code examples
sql-serverssms

How to change keyboard shortcut - F5 to Ctrl + Enter to execute SQL command in SQL Server Management Studio


I want to change the execute keyboard shortcut from F5 to Ctrl + Enter in SQL Server Management Studio.

I tried to open Tools > Options > Environment > Keyboard > Keyboard and selected query.executed and set my key as Ctrl + Enter, but when I execute my command in SSMS using Ctrl + Enter, my query is not getting executed, I had to press F5 again to actually execute my statement.


Solution

  • Go to Tools > Options > Keyboard > Find Query.Execute Choose Text Editor And Assign new Key

    enter image description here