Quote for 2013-12-16

PUBLISHED ON DEC 16, 2013 — IMPORTED FROM TUMBLR, QUOTE

HOWTO: Open Your Work from Sublime in Chrome with a Key Command

In Sublime Text, go to Tools > Build System > New Build System. A new tab will open in Sublime Text named untitled.sublime-build, with the following text in it:

{
“cmd”: [“make”]
}

If you use a Mac, replace it with the following:

{
“cmd”: [“open”, “-a”, “/Applications/Google Chrome.app”, “$file”]
}

Save the file. Name it Choose Browser.sublime-build. Sublime Text should be smart enough to put it in the right place for you, but if it doesn’t, save it to the following locations:

Mac OS X: ~/Library/Application Support/Sublime Text 2/Packages/User

Restart Sublime Text.

Now when you want to preview your work in Sublime Text in a web browser, do one of the following:

Tools > Build
Press Command-B (Mac) or Ctrl-B (Windows)
Your browser selection tool should open, allowing to choose the browser in which you want to see your webpage.



Took me less than a minute. Original instructions set the path to another browser; I just inserted the path to Chrome & *pow* - one shortcut to open an HTML page in Chrome. Be sure to select “Choose Browser” under Tools > Build System before hitting the shortcut.

via here