您好,登录后才能下订单哦!
本文小编为大家详细介绍“Sublime中View in Browser功能不生效如何解决”,内容详细,步骤清晰,细节处理妥当,希望这篇“Sublime中View in Browser功能不生效如何解决”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。
安装玩view in browser插件后,在文档中点击邮件的view in browser 不生效
-->package setting--> view in browser -->settings-default,复制文件内容到settings-users中;因为settings-default文件是只读的
修改settings-user文件中的地址
{ "posix": { "linux": { "firefox": "firefox -new-tab", "chrome": "google-chrome", "chrome64": "google-chrome", "chromium": "chromium" }, "linux2": { "firefox": "firefox -new-tab", "chrome": "google-chrome", "chrome64": "google-chrome", "chromium": "chromium" }, "darwin": { "firefox": "open -a \"/Applications/Firefox.app\"", "safari": "open -a \"/Applications/Safari.app\"", "chrome": "open -a \"/Applications/Google Chrome.app\"", "chrome64": "open -a \"/Applications/Google Chrome.app\"", "yandex": "open -a \"/Applications/Yandex.app\"" } }, "nt": { "win32": { "firefox": "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe -new-tab", "iexplore": "C:\\Program Files\\Internet Explorer\\iexplore.exe", "chrome": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "yandex": "%Local AppData%\\Yandex\\YandexBrowser\\browser.exe" } }, "browser": "chrome" }
比如以上代码就是设置了chrome浏览器的默认打开方式,这样就可以通过右键点击文档然后点击view in browser正常打开chrome进行预览了
可以通过preference-->key bindings中添加以下信息,根据自己需要修改快捷键组合
[ { "keys": [ "ctrl+alt+v" ], "command": "view_in_browser" }, { "keys": [ "ctrl+alt+f" ], "command": "view_in_browser", "args": { "browser": "firefox" } }, { "keys": [ "ctrl+alt+c" ], "command": "view_in_browser", "args": { "browser": "chrome" } }, { "keys": [ "ctrl+alt+i" ], "command": "view_in_browser", "args": { "browser": "iexplore" } }, { "keys": [ "ctrl+alt+s" ], "command": "view_in_browser", "args": { "browser": "safari" } } ]
读到这里,这篇“Sublime中View in Browser功能不生效如何解决”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注亿速云行业资讯频道。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。