Sublime Forum

SublimeREPL build system for Python

#1

Hello,

I use Sublime Text together with SublimeREPL. When I write a Python file that expects input from the user, I always have to laboriously run the file via Tools --> SublimeREPL --> Python --> Python - RUN current file. After running it once, I have to start the whole thing again if I want to test a small change.

Isn’t there a quicker way to do this? It would be best if it worked like the normal Python build system. There I just have to press CTRL + B and the code will be executed as often as I want. Can’t you do this analogously with SublimeREPL? Simply choose a different shortcut and then SublimeREPL will start automatically and, above all, without having to close the window and restart it every time.

It would also be great if I could use a two-column layout. The normal code should be displayed on the left and when I start SublimeREPL, the user input should be on the right. Would it be possible?

I am grateful for every tip. By the way, I use Sublime Text on Linux Mint.

Best regards
gospat

0 Likes

#2

You can make custom keybindings under Preferences > Key Bindings. See http://www.sublimetext.com/docs/key_bindings.html

0 Likes

#3

Ok, thank you very much for that.

I have now found a code snippet for my key binding. It also works almost perfectly. I can now open my code on the left and SublimeREPL opens on the right using CTRL+ALT+B. The only thing missing now would be reusability. Every time I press CTRL+ALT+B again, a new window opens on the right. This is very unpleasant. Is it somehow possible for the current window to simply be updated or reopened?

0 Likes