【问题标题】:Sublime Text 3 - Preview in browser [localhost] using sidebar enhancement pluginSublime Text 3 - 使用侧边栏增强插件在浏览器 [localhost] 中预览
【发布时间】: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


    【解决方案1】:

    好的,所以上面提到的 SideBarEnhancements.json 文件似乎确实有效。

    但是我不完全确定它最终是如何工作的。最后,我只是重新保存了 json 文件并重新启动了 Sublime,这使得在 sidebarenhancements 插件的浏览器功能中右键单击打开。 现在修复键绑定。将尽可能更新。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-07
      • 2013-10-29
      • 2020-04-24
      • 2015-06-25
      • 2015-01-12
      相关资源
      最近更新 更多