【Sublime】Set shotcut to open the non - default browser
By default, sublime will open the file by defalut brower. But as a front end coder, i have to test other browser. So it's a little tedious. If you have used Notepadd++, you may love the fuction to open the file by some mainstream browsers. So we can set a shotcut for a specific broswer in sublime.
Chorme is my default browser, so we take firefox as example.
1.Tools -> Build System -> New Build System...
2.Add this file. Just use your own path of firefox.exe or chrome.exe to replace mine.
{
"cmd":["F:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe","$file"]
}
3. Restart sublime.
4. We can test it in a html file, press ctrl+b or CMD+B in mac.
≡≡≡≡≡≡≡≡≡≡★ From Laker's blog ★≡≡≡≡≡≡≡≡≡≡
¤ ╭⌒╮☀Coding and changing~☀ ╭╭ ⌒╮
✪Fighting and insisting~✪