Sublime text keybinding: Repl (python interpreter) and Terminus (cmd in sublime)

Sublime Text - WikipediaSublime text is one of the best code editor and my favourite one. Being very adapatble for your needs is the best thing. Two of the plugins that I use the most are Sublime repl and Terminus. WIthout the keybinding they lost most of their usefulness. So here are my tips to do the keybinding, that can be a bit hard to understand. This is the way to add some shortcut keys to activate the plugins. With Sublime repl, you press ctrl+b to start the code into a python interpreter inside sublime text itself, so that you do not have to open the cmd.
Sublime text editor

Sublime text is one of the best code editor and my favourite one. Being very adapatble for your needs is the best thing. Two of the plugins that I use the most are Sublime repl and Terminus. WIthout the keybinding they lost most of their usefulness. So here are my tips to do the keybinding, that can be a bit hard to understand. This is the way to add some shortcut keys to activate the plugins. With Sublime repl, you press ctrl+b to start the code into a python interpreter inside sublime text itself, so that you do not have to open the cmd.

With Terminus you can open the command line into sublime text into the same folder as root directory where you have the script. So, this saves a lot of time like Sublime repl (because for something you will need the command line, even if you have sublime repl, for example to commit to github).

Keybinding Sublime repl

If you install Sublime Repl to have a python interpreter into Sublime text you need to go into the sublime text keybinding like you see in the picture above and go copy and paste this lines into square parenthesis

Remember to enclose the {} of the various key combination into the [] at the start and the beginning [ {“key”: ….. }].

Terminus plugin keybinding

For terminus, plugin that opens the cmd into Sublime text directly, you can use this script for the keybinding into the C:\Users\giova\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-keymap file (your path will be similar, but not the same, of course, but do not worry, you just have to go into preferences/keybindings like you saw in the picture above).

You can use this to open the command line with alt+1

To be more clear, if you want both the keybindings there:

Post written by Avatar A python enthusiast

Higlighted videos

Speech recognition game
Pygame cheatsheets
Let's start using pygame to make games! Pretty fun assured.