Home >Development Tools >sublime >How to set shortcut keys to open the browser in Sublime Text3

How to set shortcut keys to open the browser in Sublime Text3

藏色散人
藏色散人forward
2021-04-16 10:07:222984browse

下面由sublime教程栏目给大家介绍Sublime Text3如何设置快捷键打开浏览器,希望对需要的朋友有所帮助!

在不同浏览器查看代码效果可谓是家常便饭,所以用不同快捷键对应打开不同浏览器可以大大提高工作效率。

 本篇分享个简单的方法只需二步:

一、安装插件SideBarEnhancements

ctrl+shift+PPackage Control: Install PackageSideBarEnhancements 安装。

没装Package Control?请看Sublime Text3—软件安装、package control插件管理

二、设置快捷键

打开Key Binding | user复制下面代码,然后修改为你的浏览器路径,重启软件。

[
    {
        "keys": ["f1"],
        "command": "side_bar_files_open_with",
        "args": {
            "application": "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe",
            "extensions": ".*",
            "paths": []
        }
    },
    {
        "keys": ["f2"],
        "command": "side_bar_files_open_with",
        "args": {
            "application": "C:\\Users\\delll\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",
            "extensions": ".*",
            "paths": []
        }
    },
    {
        "keys": ["f5"],
        "command": "side_bar_files_open_with",
        "args": {
            "application": "C:\\Program Files\\Internet Explorer\\iexplore.exe",
            "extensions": ".*",
            "paths": []
        }
    }
]

Tips:

1.f3是查找下一个的快捷键,f11是全屏的快捷键,设置时小心冲突!详细快捷键介绍请看:Sublime Text—自带快捷键介绍

 keys是按键,application是浏览器程序路径,extensions是匹配所有的文件后缀格式。

2.桌面的快捷图标怎么看路径?选中图标 | 右键 | 属性,反斜杠需转义把\改为\\。

The above is the detailed content of How to set shortcut keys to open the browser in Sublime Text3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete