r/SQLServer • u/WorkyMcWorkFace36 • Oct 16 '25
Question Make F5 key (w/ FN off) run the SQL Script??
Right now, the F5 key (with function off) is to toggle brightness. With function on, it runs SQL/Python Scripts when I am in the editor. I'd like to SWITCH these.
So when FN is off, it runs the script if I am in that application. If app isn't open, do nothing.
If FN is on, then it toggles keyboard brightness.
All other shortcut keys/function keys should NOT be changed.
2
Upvotes
11
u/SirGreybush 1 Oct 16 '25
That's a BIOS setting on your laptop. Or use a replacement keyboard with 101 keys that plugs in USB, no need to change anything.
3
u/FreedToRoam Oct 17 '25 •
Ctrl-E for me
1
u/imtheorangeycenter Oct 17 '25
Fn+FnLock should sort you right out and make F5 always be F5.
But then you'll moan about changing brightness...
2
u/MimikOctopus Oct 16 '25
Most laptops have a way to toggle function lock so it's either F5 or the function without pressing function key.
1
u/Disastrous_Fill_5566 Oct 17 '25
Alt+x has been my execute shortcut for decades.