Sublime Text 3 install the SublimeREPL plug-in and shortcut key settings

Source: Internet
Author: User

Sublime Text 3 install the SublimeREPL plug-in and shortcut key settings

SublimeREPL is a plug-in for Sublime Text. It not only enables you to run the interpreter (REPL) in the ST, but also has special support for the Python language, this includes starting Python in virtualenv (remote only available on linux/osx Platform), quickly running the selected code or starting PDB.

This article describes how to install the SublimeREPL plug-in Sublime Text3 in Windows and how to set the shortcut keys.

1. Package Control

* We recommend that you use the Sublime Text3 with Package Control directly built in.

In Sublime, "Preferences" → "plug-in control" (if not, it means you have not built this in ST, and you can find a solution by yourself)

Enter the Install Package or click the location where the mouse is located.

Then Loading repositories appears,

Enter sublimeREPL, and the installation will be completed at the bottom of the page.

(In "Preferences" → "plug-in settings", we can see that SublimeREPL is installed)

 

2. An error occurred while installing the Package.

* If the first step is successfully installed, skip this step.

Error during installation:

Package Control:There are no packages available for installation

According to StackOverflow, IPv6 causes the above error if our Intent service provider (ISP) does not support IPv6. The original Article is as follows:

This error is happened with IPv6 problem. If yourInternet Service Provider (ISP) does not support for IPv6 you got this error.

Find the cause of the problem and solve it.

Enter the following command in cmd:

ping sublime.wbond.net

In this way, obtain the IPv4 address of sublime.wbond.net:

50.116.34.243

Open the C: \ Windows \ system32 \ drivers \ etc \ hosts file and add the following correspondence:
{IPv4 address} sublime.wbond.net

#to solve Sublime Text IPv650.116.34.243 sublime.wbond.net#end

 

3. SublimeRPEL shortcut key settings

"Preferences" → "Key Binding-user", add the following content

[     { "keys": ["f7"], "command": "toggle_setting", "args": {"setting": "word_wrap"} },     { "keys":["f5"], "caption": "SublimeREPL: Python - RUN current file", "command": "run_existing_window_command", "args":{"id": "repl_python_run","file": "config/Python/Main.sublime-menu"}},]

After setting, press f7 to automatically wrap the line. Press f5 on The py file page to open a new tab to run it.

If you press f5

can't open file '$file_basename': [Errno 2] No such file or directory

"Preference" → "plug-in Settings" → "SublimeREPL" → "Settings-User", add the following content

{    "default_extend_env": {"PATH": "{PATH};C:\\Python27"},}

The above path is the installation directory of your own python.

 

4. Other

Wait until you have time :)

For more information about Sublime Text, read:

The eight most commonly used Sublime Text 3 plug-ins

Ubuntu installation code editor Sublime Text 3 (Build 3083)

Animation display 16 Sublime Text Shortcut Key Usage

Ubuntu 12.10 install and crack Sublime Text 2

Install Sublime Text 2 on Ubuntu 13.04

Code artifact-Sublime Text package management tools and extensions

How to Develop the Sublime Text 2 plug-in

Install and crack the Sublime Text 2 editor in Windows Mac Linux

Text Editor Sublime Text User Experience

Sublime Text details: click here
Sublime Text: click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.