Alex Rivera | Logout

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

Asked 2011-11-05T22:50:36.927
109

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 setup in Sublime Text for web development is appreciated!

Edit
Report

1 Answer

33

Windows7 FireFox/Chrome:

    {
       "cmd":["F:\\Program Files\\Mozilla Firefox\\firefox.exe","$file"]
    }

just use your own path of firefox.exe or chrome.exe to replace mine.

Replace firefox.exe or chrome.exe with your own path.

answered 2012-03-21T08:42:38.917

Your Answer