1.安裝SidebarEnhancements 插件
2.設(shè)置快捷方式
首選項(xiàng)--> pakeage setting --> Side Bar -->Key Bindings-user?? 添加:
[
{ "keys": ["ctrl+shift+c"], "command":"copy_path" },//復(fù)制文件路徑的快捷方式
{
"keys": ["alt+f11"],
"command": "side_bar_open_in_browser",
"args": {
"paths": [],
"type": "testing",
"browser": "firefox"?? //firefox瀏覽器
}
},
{
"keys": ["alt+f12"],
"command": "side_bar_open_in_browser",
"args": {
"paths": [],
"type": "testing",
"browser": "chrome"??? //chrome瀏覽器
}
}
]
在側(cè)邊欄文件夾右鍵選項(xiàng)
Project? -->Edit Proview URLS
添加:
{
"/var/www/html/":{????? //文件目錄
"url_testing": "http://localhost:",
"url_production": ""
},
"XXX":{?????????? //文件目錄
"url_testing": "http://localhost:8080",??????????? //添加8080端口
"url_production": ""
}
}