Control-E / Cntl-E to run a query (same as SMSS)
Pretty simple - lets me keep my hands closer to the money spot on the keyboard. I find F5 to be disrupting to my keyboard position.
-
Mark A commented
This is already in there as a configurable option. I'm taking my votes somewhere else :-)
For completeness:
1. Edit / Preferences / Advanced Tab
Under the "Editor" section, change "Use Visual Studio Shortcut Keys" to False. -
Control+E is also used for commenting/uncommenting code in VS (and also in LINQPad). Why don't you try disabling VS-key-mode in Edit | Preferences - Control+E will then execute a query, and Control+K / Control+U will comment/uncomment code. Go to Help | Keyboard Shortcuts to see all shortcuts.
-
James Telfer commented
Ctrl+E is in SSMS is really handy. Ctrl+E in VS is used for Word Wrap (Ctrl-E, Ctrl+W) and for various workflow commands.
I don't think this will clash with anything relevant in VS, and IMO the extra compatibility with SSMS is worth it.
-
Two workarounds:
- Use Control+G instead (this is mapped to F5)
- Disable Visual-Studio-compatible shortcuts in Edit | Preferences: this will enable Control+E