Windows环境下为Sublime Text设置快捷键直接打开Chrome

最初发表于: 2019-02-28 12:01:32
  1. 打开Sublime Text, 点 设置->热键设置->在”User”那边的[]中添加如下代码
//chorme

{

"keys": ["f2"],

"command": "side_bar_files_open_with",

"args": {

"paths": [],

"application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",

"extensions": ".*"

}

}

可以修改chome为实际地址, 快捷键是F2

另一版本如下,

{ 
	"keys": ["f5"], 
	"command": "side_bar_open_in_browser", 
	"args":
	{
	  "paths":[], 
      "type":"url_testing", 
      "browser":"chrome"
    } 
   }