its_arish
its_arish

Reputation: 1

Is there any shortcut to open Python' interactive console with sublimerepl? And if not, can I create one?

Is there a shortcut to open Ipython from sublimerepl

Upvotes: 0

Views: 87

Answers (1)

EnigmaOs
EnigmaOs

Reputation: 25

Yes, there is a shortcut to open the Python interactive console with SublimeREPL. On Windows, the shortcut is Ctrl+Shift+C, and on Mac, it is Cmd+Shift+C.

You can also create a custom shortcut by going to the Preferences menu and selecting Keybindings. Then, add a new keybinding with the desired shortcut and the command repl_open, which opens the interactive console. The keybinding should look like this:

{ "keys": ["your_shortcut"], "command": "repl_open", "args": {"type": "subprocess", "encoding": "utf8", "cmd": ["python", "-i", "-u"], "cwd": "$file_path", "syntax": "Packages/Python/Python.tmLanguage", "external_id": "python"} }

Note that you need to replace "your_shortcut" with the shortcut you want to use.

Upvotes: 0

Related Questions