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! While you're at it, check out some resources Treehouse students have shared here.

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

HTML Build a Simple Website Website Basics Changing Background Colors

Preview in browser

How do I set Sublime Text 2 to preview my coding in the Chrome browser?

1 Answer

Alex Lavender
Alex Lavender
2,471 Points

There are different ways to do this but I would say an easy way is to save your file to your desktop and then once the file is on your desktop right click and go to open with and then click chrome. This should put your file in your chrome browser and then you can click refresh in chrome once u have saved your sublime file to preview it.

Another way is to type it in directly to your chrome browser which may be more difficult if you are not experienced with doing this it could read something like file:///users/name/desktop/file.html, if you save your file and right click and find a way to get info on this file (which will be different depending which operating system you use) you can put that in the chrome browser to preview it.

hope this helps