zoukankan      html  css  js  c++  java
  • sublime Text 3

    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:UsersAdministratorAppDataRoamingSublime Text 3PackagesUser

    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",
    }
    6.脚本运行

    1)下载地址:https://github.com/cmderdev/cmder/releases/tag/v1.3.11

    2)解压到自己的工作目录
    3)执行cmder.exe,打开cmder
    4)进入脚本目录,输入bash进入bash解释器
    5)执行脚本./1.sh
     

     插件网站:https://packagecontrol.io/

     

    如何解决SublimeText打开文档中文乱码

    github寻找ConvertToUTF8 下载解压到Sublime Text 3Packages后重启

  • 相关阅读:
    Java使用默认浏览器打开指定URL
    eclipse.ini内存设置
    Eclipse关联Java源代码
    C#调用Java代码
    UVA12161 Ironman Race in Treeland
    [JSOI2012]玄武密码
    着色问题
    luogu P2680 运输计划
    [BJWC2010]严格次小生成树
    [SDOI2015]异象石
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/10209327.html
Copyright © 2011-2022 走看看