sublime text怎么使用快捷键运行浏览web⼀html页面

2024-11-12 03:33:52
推荐回答(1个)
回答1:

sublime text快速运行web/html页面的方法:
1、打开 " Preference --> Package Settings --> Side Bar --> Settings User-User"

2、在打开的文件中添加:
{
"default_browser": "chrome" //one of this list: firefox, aurora, chrome, canary, chromium, opera, safari
}
默认的浏览器可以是列表中的任意一种,在这里选择的是Chrome,可以根据自己的情况进行选择。

3、为 SideBarEnhancements 指定默认localhsot目录。在侧边栏任意文档上点击鼠标右键,选择 "Project --> Edit Preview URLs"

4、所有设置已经完成,可以在页面中按相应的热键,调用在配置文件中设置好的浏览器进行浏览。