Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to configure SublimeREPL shortcuts for Sublime Text3

Shulou Source: shulou.com Published: 2022-06-02 15:05:32 10月03日 Update

Editor to share with you how to configure SublimeREPL shortcuts in Sublime Text3. I hope you will get something after reading this article. Let's discuss it together.

Because python is run with sublime, ctrl+b cannot enter data if there is an input () function, so download and install sublimeREPL for debugging.

But sublimeREPL doesn't have custom shortcuts, so you have to set them yourself.

Many methods on the Internet have no effect, and finally find the right way after tossing around all night.

First find the configuration file for sublimerepl.

Step: Preferences-- > Browse Packages-- > SublimeREPL folder-> config folder-> Python folder-> Default.sublime-commands (open in text format)

[{"caption": "SublimeREPL: Python", "command": "run_existing_window_command", "args": {"id": "repl_python", "file": "config/Python/Main.sublime-menu"}}, {"caption": "SublimeREPL: Python-PDB current file" "command": "run_existing_window_command", "args": {"id": "repl_python_pdb", "file": "config/Python/Main.sublime-menu"}, {"caption": "SublimeREPL: Python-RUN current file", "command": "run_existing_window_command" "args": {"id": "repl_python_run", "file": "config/Python/Main.sublime-menu"}, {"command": "python_virtualenv_repl", "caption": "SublimeREPL: Python-virtualenv"}, {"caption": "SublimeREPL: Python-IPython" "command": "run_existing_window_command", "args": {"id": "repl_python_ipython", "file": "config/Python/Main.sublime-menu"}}]

This is the configuration file for repl. Find the command you need and copy it.

Paste to Preferences-- > Key Bindings User

The code is as follows

[{"keys": ["f5"], / / this is my own shortcut "command": "run_existing_window_command", "args": {"id": "repl_python_run" "file": "config/Python/Main.sublime-menu"}}]

Just save it at last.

As shown in the picture

Tips on every time sublime opens an update

Preferences- > seting user-"{" font_size ": 13," update_check ": false,} after reading this article, I believe you have some understanding of" how to configure SublimeREPL shortcuts in Sublime Text3 ". If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

Tags: Files shortcuts configurations folders articles this is code functions only commands finished effects data text methods methods more formats steps knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Redmi MariaDB macOS Xiaomi