sublime Text 3

1.下載git

地址:github

http://www.sublimetext.com/3shell

2.安裝json

help->licensebootstrap

激活碼bash

----- 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 ------app

3.install packagecontrolide

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.ui

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",
}
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 3\Packages後重啓

相關文章
相關標籤/搜索