Created
June 13, 2017 23:05
-
-
Save laluxgp/de117a7d790361bd2e0149a7d117d606 to your computer and use it in GitHub Desktop.
Getting Sublime 3 To Launch your HTML page in a Browser with a Key Combo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "$file"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
# Getting Sublime 3 To Launch your HTML page in a Browser with a Key Combo
I recently installed Sublime 3 Beta and created an .HTML file and wanted to launch it in Chrome from within the IDE without right-clicking the file and selecting “Open From Browser”. I wanted to simply hit a key combo. I looked through all of the options and could not find a way. I discovered that you could add a new build system though and get this functionality.
## Steps
for opening with Google Chrome
{
"cmd": ["C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "$file"]
}
Tools –> Build System –> chrome and switch back to the HTML file and hit CMD-B on a Mac.
What about Windows?
For Windows Machines following the same instructions except use the command : { "cmd": ["PATH_TO_YOUR_CHROME" "$file"] }
You can run it by pressing CTRL-B.