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

后端 未结 14 2216
野性不改
野性不改 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:50

    Install the View In Browser plugin using Package Control or download package from github and unzip this package in your packages folder(that from browse packages)

    after this, go to Preferences, Key Bindings - User, paste this

    [{ "keys": [ "f12" ], "command": "view_in_browser" }]

    now F12 will be your shortcut key.

提交回复
热议问题