Hi-
I’m doing just a bit of python coding lately, and I want to map the F5 function key to execute the current file. (I think this would just run execfile(current_file) in the python interpreter). Can someone please help me set this up?
Thanks
Python development: key binding to execute current script
oats
#1
0 Likes
guillermooo
#2
You probably want to use build systems:
sublimetext.info/docs/core/build_systems.html
Sublime 2 ships with one for Python: go to Tools | Build System, check Python, press F7.
G
0 Likes
oats
#3
That didn’t exactly work for me. I think I’d like to understand the key bindings and API approach anyway, for future reference.
0 Likes