sublime 快捷键设置浏览器
时间: 2023-11-12 19:08:35 浏览: 163
在Sublime Text中,你可以通过设置快捷键来方便地在浏览器中打开文件。首先,打开Sublime Text的配置文件。你可以通过点击菜单栏中的"Preferences",然后选择"Key Bindings - User"来打开配置文件。然后,将以下代码粘贴到配置文件中(以设置Chrome浏览器为例):
{
"keys": ["f2"],
"command": "open_in_browser"
}
保存配置文件后,你可以使用快捷键"Ctrl+S"保存更改。现在,当你在Sublime Text编辑器中按下"F2"键时,它将会在默认浏览器中打开当前文件。如果你想设置其他浏览器作为默认浏览器,你可以在配置文件中修改"default_browser"的值为你想要使用的浏览器,比如"firefox"、"canary"、"chromium"、"opera"、"safari"或"ie"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [sublime text3设置快捷键在浏览器中打开](https://blog.csdn.net/weixin_46343491/article/details/121437647)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [sublime修改默认浏览器及使用不同浏览器打开网页的快捷键设置](https://blog.csdn.net/hi1234560/article/details/118488498)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Sublime Text—设置浏览器快捷键的方法推荐](https://download.csdn.net/download/weixin_38716872/12879878)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文