Custom Sublime Text Build Systems For Popular Tools And Languages
addyosmani.com
addyosmani.com
If you use Sublime Text and just want a build system to save and start HTML pages when writing HTML and JavaScript, you can simply do:
Tools -> Build System -> New build system, write:
{
// or add the chrome path to the environment
"cmd": ["C:/Users/ThyUsername/AppData/Local/Google/Chrome/Application/chrome.exe", "$file"],
"selector": "html"
}
and save. CTRL+B then saves your html file and opens it in Chrome. I think on a Mac you'd do: {
"cmd": ["open", "-a", "Safari", "$file"],
"selector": "html"
}E.g., for Cordova iOS projects I use:
"cmd": ["cordova/debug", "&&", "cordova/emulate"]