sublime3是一款很优秀的文本编辑器。软件免费,但是会经常弹出purchase的选项。解决方案如下:
一、修改host文件。可以写个脚本,也可以自己添加。
@echo off
SET NEWLINE=^& echo.
FIND /C /I "license.sublimehq.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 license.sublimehq.com>>%WINDIR%\System32\drivers\etc\hosts
FIND /C /I "45.55.255.55" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 45.55.255.55>>%WINDIR%\System32\drivers\etc\hosts
FIND /C /I "45.55.41.223" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 45.55.41.223>>%WINDIR%\System32\drivers\etc\hosts
127.0.0.1 license.sublimehq.com
127.0.0.1 45.55.255.55
127.0.0.1 45.55.41.223
二、 打开sublime text 3,在上方“help工具栏”下面对应的”enter 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 ------