1、下载:( Sublime Text Version 3.2.2 Build 3211 )
https://www.sublimetext.com/3
2、安装Package Control:
"Tools" --> "Install Package Control"
3、安装常用插件包:
"Preferences" --> "Package Control" --> "Package Control:Install Package" ChineseLocalizations ConvertToUTF8 JsFormat
4、更改hosts文件,禁止自动更新,增加如下条目:
127.0.0.1 sublimehq.com 127.0.0.1 sublimetext.com 127.0.0.1 www.sublimetext.com 127.0.0.1 license.sublimehq.com 127.0.0.1 telemetry.sublimehq.com 127.0.0.1 45.55.255.55 127.0.0.1 45.55.41.223
5、使用WinHex编辑sublime_text.exe文件
搜索 --> 查找十六进制数值 输入97940D --> 替换为 00 00 00
注意:编辑文件前先关闭Sublime Text,最好先备份sublime_text.exe文件,以防万一。
6、激活码:
----- BEGIN LICENSE ----- TwitterInc 200 User License EA7E-890007 1D77F72E 390CDD93 4DCBA022 FAF60790 61AA12C0 A37081C5 D0316412 4584D136 94D7F7D4 95BC8C1C 527DA828 560BB037 D1EDDD8C AE7B379F 50C9D69D B35179EF 2FE898C4 8E4277A8 555CE714 E1FB0E43 D5D52613 C3D12E98 BC49967F 7652EED2 9D2D2E61 67610860 6D338B72 5CF95C69 E36B85CC 84991F19 7575D828 470A92AB ------ END LICENSE ------
最后显示Thanks for Purchase,就说明注册完成了。
7、禁止自动升级(升级后原来的Key就不能用了^_^):
首选项 --> 设置 --> Preferences.sublime-settings -- User
添加 "update_check":false,
8、添加到右键菜单:
@ECHO OFF PUSHD %~DP0 TITLE Sublime Text Md "%WinDir%System32 est_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit) Rd "%WinDir%System32 est_permissions" 2>NUL SetLocal EnableDelayedExpansion SET /P ST=输入a添加右键菜单,输入d删除右键菜单: if /I "%ST%"=="a" goto Add if /I "%ST%"=="d" goto Remove :Add reg add "HKEY_CLASSES_ROOT*shellSublime Text" /t REG_SZ /v "" /d "&Sublime Text" /f reg add "HKEY_CLASSES_ROOT*shellSublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%~dp0sublime_text.exe" /f reg add "HKEY_CLASSES_ROOT*shellSublime Textcommand" /t REG_SZ /v "" /d "%~dp0sublime_text.exe "%%1"" /f exit :Remove reg delete "HKEY_CLASSES_ROOT*shellSublime Text" /f exit
[ THE END ]