一。 解决package Install不能安装
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:
- Click the Preferences > Browse Packages… menu
- Browse up a folder and then into the Installed Packages/ folder
- Download Package Control.sublime-package and copy it into the Installed Packages/ directory
- Restart Sublime Text
https://packagecontrol.io/installation#st3
新问题: unbable to download sublimeserver.....
二。安装sublime server 插件包
1.Ctrl + shift + p
install package
sublimeServer
2.git
- cd to your Sublime packages folder, don't know where is it? Open Sublime and choose Preferences -> Browser Packages, yeah, here is it!
$ git clone git://github.com/learning/SublimeServer.git
3.下载sublime server 插件包解压放在Open Sublime and choose Preferences -> Browser Packages里面。
4.tool-sublimeServer-settings:
可以修改端口(1000以下的端口号尽量不要用,需要root权限)
5.tool-sublimeServer-start server:
打开sublimeServer
6..index右键 view in sublimeServer 注意:SublimeServer要求你的代码文件夹添加到Sublime Text的项目里面(即将文件夹拖到sublime即可),这样才能列出这些文件夹。
7.复制地址到手机端,把localhost改成电脑IP即可(Mac查电脑IP:ifconfig | grep "inet " | grep -v 127.0.0.1)