Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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