码迷,mamicode.com
首页 > 其他好文 > 详细

sublime Text 3

时间:2019-01-02 17:18:57      阅读:652      评论:0      收藏:0      [点我收藏+]

标签:div   recommend   script   ida   bfc   round   got   解决方案   cti   

1.下载

地址:

http://www.sublimetext.com/3

2.安装

help->license

激活码

----- BEGIN LICENSE -----
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
969624E7 DC9CD4D5 717FB40C 1B9738CF
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8
5F7EF854 86B9743C FADC04AA FB0DA5C0
F913BE58 42FEA319 F954EFDD AE881E0B
------ END LICENSE ------

3.install packagecontrol

The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.

1 import urllib.request,os,hashlib; h = ‘6f4c264a24d933ce70df5dedcf1dcaee‘ + ‘ebe013ee18cced0ef93d5f746d80ef60‘; 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) 

This code creates the Installed Packages folder for you (if necessary), and then downloads the Package Control.sublime-package into it. The download will be done over HTTP instead of HTTPS due to Python standard library limitations, however the file will be validated using SHA-256.

Manual

If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/ folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

4.无法安装插件

There are no packages available for installation

解决方案简述:

1.下载 JSON文件:“https://packagecontrol.io/channel_v3.json”;

2.修改 JSON文件中的版本号“schema_version”,将“3.0.0”修改为 “2.0”;

3.打开 首选项 --》插件设置 --》Package Control --》 设置-用户  (或者“设置-默认”)

4. 修改第3步设置文件中的 channels 属性的值,
在 channels[……]的最前面添加 JSON文件 的 地址(步骤1下载的文件)
注意:英文逗号分割  和  斜线方向


    "bootstrapped": true,
    "channels":
    [
        "E:\\Idyll\\01_Tools\\Sublime 3\\channel_v3.json"
    ],

5.下载ShellScriptImproved

地址:https://github.com/jfcherng/Sublime-ShellScriptImproved

copy至C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\User

Preferences->Settings增加红色部分,注意原来代码最末加上逗号

{
    "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
    "ignored_packages":
    [
    ],
    "theme": "Adaptive.sublime-theme",
// use a bundled .tmTheme file while writing shell scripts
    "color_scheme": "Packages/ShellScriptImproved/color_schemes/dark.tmTheme",
    // or, if you are using Sublime Text >= 3149, using a .sublime-color-scheme file is recommended
    "color_scheme": "Packages/ShellScriptImproved/color_schemes/dark.sublime-color-scheme",
}

 

sublime Text 3

标签:div   recommend   script   ida   bfc   round   got   解决方案   cti   

原文地址:https://www.cnblogs.com/idyllcheung/p/10209327.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!