安装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:
可以修改端口(8000以下的端口号尽量不要用,需要root权限)
5.tool-sublimeServer-start server:
打开sublimeServer
6..index右键 view in sublimeServer
7.复制地址到手机端,把localhost改成电脑IP即可(Mac查电脑IP:ifconfig | grep "inet " | grep -v 127.0.0.1)
时间: 2024-10-09 18:29:56