Sublime Text 2 keyboard shortcut to open file in specified browser (e.g. Chrome)

后端 未结 14 2161
野性不改
野性不改 2020-12-02 04:31

I do web development and am trying out Sublime Text 2. Is there a keyboard shortcut to open the current file in specified browser (e.g. Chrome)?

Any help to get set

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 04:48

    On windows launching default browser with a predefined url:

    Tools > Build System > New Build System:

    {
        "cmd": ["cmd","/K","start http://localhost/projects/Reminder/"]
    }
    

    ctrl + B and voila!

提交回复
热议问题