安装 View In Browser 插件
快捷键 Ctrl+Shift+P(菜单栏 Tools->Command Paletter), 输入 pcip 选中 Install Package 并回车, 输入 View In Browser 的插件回车就安装了
注意左下角的小文字变化, 会提示安装成功
设置快捷键:
第一步.
Preferences-Key Bindings-User.
然后就跳出一个空白页面.
第二部, 将以下代码键入.
- [
- //IE
- {
- "keys": ["f2"],
- "command": "side_bar_files_open_with",
- "args": {
- "paths": [],
- "application": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
- "extensions": ".*"
- }
- },
- //chorme
- {
- "keys": ["f1"],
- "command": "side_bar_files_open_with",
- "args": {
- "paths": [],
- "application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
- "extensions": ".*"
- }
- }
- ]
其中 "keys" 是指定快捷键, 替换成自己想要的.
application 是你浏览器在电脑上的目录地址, 替换了就 OK 了. 注意是双斜杠 \\.
第三步, 保存.
来源: http://www.bubuko.com/infodetail-3257907.html