本文可以理解為FAQ,主要是為了大家GET一些技能,具體內容包括LICENSE、重置、Package Control的安裝,其他內容以後可能會補充...
最後說明自己的版本:Build 3114
LICENSE
提供網路上流傳已久的註冊碼,自我感覺是通用的。
—– BEGIN LICENSE —– Anthony Sansone Single User License EA7E-878563 28B9A648 42B99D8A F2E3E9E0 16DE076E E218B3DC F3606379 C33C1526 E8B58964 B2CB3F63 BDF901BE D31424D2 082891B5 F7058694 55FA46D8 EFC11878 0868F093 B17CAFE7 63A78881 86B78E38 0F146238 BAE22DBB D4EC71A1 0EC2E701 C7F9C648 5CF29CA3 1CB14285 19A46991 E9A98676 14FD4777 2D8A0AB6 A444EE0D CA009B54 —— END LICENSE —— 或者 —– BEGIN LICENSE —– Alexey Plutalov Single User License EA7E-860776 3DC19CC1 134CDF23 504DC871 2DE5CE55 585DC8A6 253BB0D9 637C87A2 D8D0BA85 AAE574AD BA7D6DA9 2B9773F2 324C5DEF 17830A4E FBCF9D1D 182406E9 F883EA87 E585BBA1 2538C270 E2E857C2 194283CA 7234FF9E D0392F93 1D16E021 F1914917 63909E12 203C0169 3F08FFC8 86D06EA8 73DDAEF0 AC559F30 A6A67947 B60104C6 —— END LICENSE ——
重置
網址:http://www.sublimetext.com/do...
內容:
SUBLIME TEXT 3 DOCUMENTATION Reverting to a Freshly Installed State Sublime Text can be reverted to a freshly installed state by removing your data folder. Depending on your operating system, this folder is located in: OS X: ~/Library/Application Support/Sublime Text 3 Windows: %APPDATA%\Sublime Text 3 Linux: ~/.config/sublime-text-3 To revert to a freshly installed state, you can: Exit Sublime Text Move the data folder to a backup location Start Sublime Text When restarted, a fresh data folder will be created, just as it was the first time you ran Sublime Text. Keep in mind that this will also remove all of your settings and packages. The backup copy of your data folder can be used to retrieve configuration, or custom packages that can not be reinstalled. OS X On OS X, the ~/Library folder is hidden by default. To navigate there, select the Go ▸ Go to Folder menu item in Finder, and type in ~/Library. 鼠标点击Finder后,按快捷键control+shift+g,在出现的弹框中输入正确的完整路径即可直接到达 Windows In Windows, cache files are stored in a separate location, %LOCALAPPDATA%\Sublime Text 3, to improve performance with roaming profiles.
安裝Package Control
自動安裝
使用快速鍵control `或透過選單選項View > Show Console進入控制台Console(再進行一次相同的操作,可以退出控制台Console)。
複製其中一個指令,貼上到控制台中,回車運行,如果失敗就換另一個,如果都失敗,請選擇手動安裝
方式。
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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) 或者 import urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
手動安裝
開啟網址(https://sublime.wbond.net/Package Control.sublime-package)會自動下載名為Package Control.sublime -package的檔案。
開啟Sublime Text 3,選擇選單Preferences->Browse Packages... 開啟安裝目錄
- ##此時會進入到一個叫做Packages的目錄下,點選進入上一層目錄Sublime Text 3,在此目錄下有一個資料夾叫做Installed Packages,把剛才下載的檔案放到這裡就可以了。
- 重啟sublime text3,觀察Preferences選單最下邊是否有Package Settings 和Package Control兩個選項,如果有,則代表安裝成功了。
- 此時使用快捷鍵control shift p,輸入ip,選擇Package Control: Install Package,回車,等一會,之後想安裝什麼插件,在裡面搜尋名字就可以了。
注意點:
#要注意的一點是,常常會出現網路連線不通的情況,不要急,這個很正常,如果出現,隔一再弄,通常都會好的。