Installation sublime text3, converted to finished plate, so that the installation is running in the interactive SublimeREPL condition code setting shortcut

A, sublime

Sublime Text 3 is lightweight, small installation package, most of its functions is to rely on a wealth of plug-in implementation, and small footprint. The current mainstream version is Sublime Text3, you can download the official website, http://www.sublimetext.com/3 , enter the official website, select and download the version that matches your computer, all the way after the download is complete click next, until you can complete the installation . After completing the installation interface is in English, the Chinese version will be introduced later.

Second, the installation Package Control

Installation Package Control installed automatically, manually install all OK. But I do not recommend using automatic installation, because often an error, manually install a little trouble, but the follow-up would not have been an error.
Automatic installation:
Use Ctrl + · (esc below the key) Enter the following code:
import urllib.request, os, hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path (); urllib.request.install_opener (urllib.request.build_opener ( urllib.request.ProxyHandler ())); by = urllib.request.urlopen ( 'http://packagecontrol.io/' + pf.replace ( '', '% 20')) read ();. dh = hashlib .sha256 (by) .hexdigest ();! print ( 'Error validating download (got% s instead of% s), please try manual install'% (dh, h)) if dh = h else open (os.path. join (ipp, pf), 'wb') .write (by) and then press the enter key, waiting for installation. Hopefully, you can see Package Control Toolbar Preferences below, if there is Package Control then the installation was successful. If errors are reported, it is still honest to manually install it!
Manual installation:

Enter https://github.com/AINY-LJW/package_control, download the file, as shown:

下载完成后解压,改名字为Package Control,将其存放在你sublime text安装包里的package包中,然后再重启sublime软件,Package Control就安装好了。

三、转化为汉化版

按快捷键Ctrl+Shift+p,输入install package,然后回车键,等待一会,会出现一个框框,输入Chinese,会出现ChineseLocalization 插件,点击一下,插件将自动安装。安装完成后一般会自动将程序语言切换为简体中文,也可以在帮助(Help)中的Language下选择语言。

 

四、安装REPL插件

按快捷键Ctrl+Shift+p,输入install package,然后回车键,等待一会,会出现一个框框,输入repl,点击回车,就开始自动安装了,等待一会,重启软件,在tools中可以看见SublimeREPL即安装完成,可以在交互环境下运行。

 

 五、sublimeREPL的快捷键安装

当我们安装好这个插件以后,可以发现每次运行都很麻烦,因此我们可以设置一个快捷键,

"首选项"→"按键绑定 - 用户",添加以下内容:

 {
            "keys": ["f5"],//这是自己设的快捷键        “”  "command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu" } }

设置后退出Sublime再打开,按f5会新开一个标签页运行它。

 

Guess you like

Origin www.cnblogs.com/CJR-QYF/p/11585569.html
Recommended