Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Cris Cancino
39,853 PointsSublime Open in Browser
Hi guys, I just downloaded Sublime, but I'm not sure how to open it in a browser.
3 Answers

Nick Nish
7,304 PointsYou can open up HTML
files in the browser. For example, if you create a new .html
file you can simply drag & drop it onto a browser. Or Right-Click it and choose Open With... Chrome/Firefox/Safari.
Let me know if you need more help!

Richard Duffy
16,488 PointsYou can't open sublime text in a browser as no software can be opened in a browser appart from browser plugins, sublime is a stand alone piece of programming software.

Cris Cancino
39,853 PointsOh ok, I get it now, thanks again :)

Nick Nish
7,304 PointsAwesome! Glad we could both help.
Cris Cancino
39,853 PointsCris Cancino
39,853 PointsHey Nick, i tried both, but they didnt work...when i right click it, it doesn't have the option "Open With" only "Open in browser", and when i click that, it just opens the html file in dreamweaver.
Nick Nish
7,304 PointsNick Nish
7,304 PointsFirst, Richard Duffy is correct when he says that Sublime Text is a text editor where you can edit code in, a separate piece of software from the browser.
Second, you want to format your
.html
files to open up in browser by default.If you're using a Mac here would be the process:
1.Right click on an
.html
file. (For example,index.html
that's in nearly every project notes on the right of a video.) 2.Hover over Open With.. 3.Go to the bottom and click Other.. 4.Check off Always Open With at the bottom of the popup pane 5.Click on the browser you use.Now test it, try double-clicking on your
.html file
and it should open in the browser. Now you can edit these files in Sublime Text, save them, and preview what they'd look like in the browser.