【发布时间】:2017-11-09 11:55:17
【问题描述】:
我在使用 Sublime Text 3 时遇到问题,我无法让侧边栏增强插件在浏览器中预览 localhost Web 服务器上的项目。
我不是最熟悉 Sublime,但我喜欢自定义和灵活性。
我已经阅读了几个不同的网站来设置插件,但无济于事。也许我缺乏理解,或者我只是错过了一些东西。
以下是我为初学者寻找的一些网站:
https://github.com/titoBouzout/SideBarEnhancements#with-absolute-paths
https://github.com/xkeshav/sublime/blob/master/settings.md
https://forum.sublimetext.com/t/view-in-browser-php-file-xampp/18431/2
https://www.hongkiat.com/blog/preview-in-localhost/
我尝试了 SideBarEnhancements.json 脚本的一些变体,这是我目前使用的(无论如何都不起作用)。
{
"/applications/mamp/htdocs":
{
"url_testing":"http://localhost",
"url_production":"http://localhost"
}
}
我也在尝试使用键绑定,但由于我什至无法在浏览器中右键单击打开功能,所以我只是卡住了。
【问题讨论】:
标签: php json browser sublimetext3 sublime-text-plugin