K
K
Konstantin Omelyan2014-09-20 10:39:38
Python
Konstantin Omelyan, 2014-09-20 10:39:38

How will sublimerepl set to hotkey?

I set up Syblime text3 to work with python installed sublimeREPL, but every time I go to Tools-sublimeREPL-pyhon-python RUN current file, can I somehow put all these actions on the hot key? so as not to go in, not to rummage through the menu 100500 times?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav, 2014-09-20
@Sipatyj

This can be done as follows:
turn on command logging in Sublime: sublime.log_commands(True)
Execute the necessary command, we get the command, in this case:

repl_open {"cmd": ["python", "-u", "$file_basename"], "cwd": "$file_path", "encoding": "utf8", "extend_env": {"PYTHONIOENCODING": "utf-8"}, "external_id": "python", "syntax": "Packages/Python/Python.tmLanguage", "type": "subprocess"}

Go to Preferences -> Key Bindings - User
Insert the line:
As a result, we get a binding on CTRL + F11.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question