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!
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!
Tools -> Build System -> New Build System. The type following as your OS, save as Chrome.sublime-build
Windows OS
MAC Os
Save the file - Chrome.sublime-build in location
or try this
"cmd": ["cmd","/K","start http://localhost/Angularjs/$file_name"]
"Open in Browser context menu for HTML files" has been added in the latest build (2207). Its release date was 25 June 2012.
This worked on Sublime 3:
To browse html files with default app by Alt+L hotkey:
Add this line to
Preferences -> Key Bindings - User
opening file:To browse or open with external app like chrome:
Add this line to
Tools -> Build System -> New Build System...
opening file, and save with name"OpenWithChrome.sublime-build"
Then you can browse/open the file by selecting
Tools -> Build System -> OpenWithChrome
and pressingF7
orCtrl+B
key.On mac and sublime text 3 , which version is 3103, the content should be
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
now F12 will be your shortcut key.