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 HTML Basics Going Further with HTML Working on a Website Project Locally

Opening Atom in browser

Hi, I am a little confused on what to click in atom so that the files open in my browser, I tried researching this issue but still don't quite understand where the preview option is like in the tree house workspace, answers are greatly appreciated!

2 Answers

Heidi Puk Hermann
Heidi Puk Hermann
33,366 Points

normall, if you just double click on a HTML-file on your computer, it will automatically open in the browser. Else right click on the file and open with your browser.

Thank you so much! My mistake must've been trying to find a preview button, silly me.

macdaradashdev
macdaradashdev
11,394 Points

I found a handy solution to this -

In Atom, you can add an "Open in browser" option. It behaves like the "Preview" button in Workspaces.

1 - When you open Atom, in "Welcome Guide", click on "Ïnstall a package", then "Open Installer".

2 - Search packages for "open in browser".

3 - Select one (I selected the one with the most downloads) & install it.

4 - Right-click on your index.html (or any html file) in Atom, & you will see an option for "Open in browser".

That's it! :)

I am now able to open the page in my browser, but when i make changes and save, i go to refresh and nothing changes!